[Ffmpeg-devel] [PATCH] h264 muxing in mp4
Mon Mar 6 04:07:39 CET 2006
On Mon, 6 Mar 2006, M?ns Rullg?rd wrote:
> Loren Merritt <lorenm at u.washington.edu> writes:
>> You only look for 1 sps and 1 pps? There can be more than 1 of each.
>> In a h264 elementary stream, they're even allowed to be spread
>> throughout the file, not all at the beginning.
> Is it possible to have multiple sps/pps in formats like mov that store
> them in a global header?
Yes. Each one has an ID number.
If there are no collisions, then just copy one instance of each
SPS/PPS into the global header.
If there are collisions, then you need to renumber them and update the PPS
ID in all frames to match.
More information about the ffmpeg-devel