View Source ExMP4.BitStreamFilter.MP4ToAnnexb (MP4 Reader and Writer v0.8.1)
An module implementing ExMP4.BitStreamFilter
behavior to convert H264/H265
from elementary stream to Annex B format.
In Addition to converting the format, it also get the parameter sets VPS/SPS/PPS NALUs
from the track stsd
box and append them to each keyframe.
In a future version, the filter should also get parameter sets from the samples and cache them to append to the next keyframes.