[Bug 702004] qtdemux: add support for the avc3 sample entry format of the AVC file format

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Jun 19 08:18:51 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=702004
  GStreamer | gst-plugins-good | git

--- Comment #20 from A Ashley <bugzilla at ashley-family.net> 2013-06-19 15:18:48 UTC ---
(In reply to comment #18)
> 
> If I understood comment #12 correctly, we don't have to parse the sample data
> (not much anyway), we can assume the sps/pps are in the first sample. It
> shouldn't be too difficult, even if it's a bit annoying.
> 

I think the steps would be something like:
1. Use a NAL parser to find and remove the SPS and PPS NALs in the sample data
and build lists of them
2. Patch codec_data to remove any existing SPS entries, PPS entries, the
numberOfSequenceParameterSets and the numberOfPictureParameterSets fields
3. Append (numberOfSequenceParameterSets | 0xE0) to codec_data
4. For each SPS NAL: append sequenceParameterSetLength and SPS NAL to
codec_data
5. Append numberOfPictureParameterSets to codec_data
6. For each PPS NAL: append pictureParameterSetLength and PPS NAL to codec_data
7. Push new codec_data downstream
8. profit! :)

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list