ExMP4.BitStreamFilter.MP4ToAnnexb (MP4 Reader and Writer v0.11.0)

View Source

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.

Summary

Types

t()

@type t() :: %ExMP4.BitStreamFilter.MP4ToAnnexb{
  nalu_prefix_size: integer(),
  pps: [binary()],
  sps: [binary()],
  vps: [binary()]
}