After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 393187 - ffenc_mpeg4 does not set codec_data on caps
ffenc_mpeg4 does not set codec_data on caps
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
0.10.10
Other Linux
: Normal normal
: 0.10.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-05 16:20 UTC by Thomas Vander Stichele
Modified: 2007-04-12 11:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to set codec_data (2.19 KB, text/x-patch)
2007-01-05 16:21 UTC, Thomas Vander Stichele
  Details
patch to set global extradata as a property (2.02 KB, patch)
2007-01-05 21:39 UTC, Mark Nauwelaerts
committed Details | Review

Description Thomas Vander Stichele 2007-01-05 16:20:38 UTC
For the .mp4 file format, it is mandatory for the codec_data/extradata/header bytes to be stored inside the container.  For this to work, ffenc_mpeg4 needs to put them on the caps as codec_data, so that the muxer can store them.

The attached patch does this for MPEG4 video and fixes a related problem.

Maybe this needs to be exposed as a property because in some containers it is valid to mux the codec header in stream as well.
Comment 1 Thomas Vander Stichele 2007-01-05 16:21:22 UTC
Created attachment 79456 [details]
patch to set codec_data
Comment 2 Mark Nauwelaerts 2007-01-05 21:39:42 UTC
Created attachment 79482 [details] [review]
patch to set global extradata as a property

The patch above produces e.g. AVI that e.g. mplayer has difficulties with.

This patch contains the same as the previous one (copied from it), but adds the CODEC_FLAG_GLOBAL_HEADER to the exposed flags, and makes it as such configurable as a property (as suggested initially), along with many others (which in the present configuration are only "switched on" for MPEG4-like codecs).
Comment 3 Wim Taymans 2007-04-12 11:07:05 UTC
        Patch by: Mark Nauwelaerts <manauw at skynet dot be> and
                  Thomas Vander Stichele  <thomas at apestaart dot org>

        * ext/ffmpeg/gstffmpegcfg.c: (gst_ffmpeg_flags_get_type):
        * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ffmpeg_codecid_to_caps),
        (gst_ffmpeg_caps_with_codecid), (gst_ffmpeg_caps_to_codecid),
        (gst_ffmpeg_get_codecid_longname):
        Add the CODEC_FLAG_GLOBAL_HEADER to the exposed flags, and makes it as such
        configurable as a property. Fixes #393187.