[gstreamer-bugs] [Bug 383420] [ffmpeg] ISO-derivative muxers don't handle audio correctly

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Dec 12 04:38:48 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=383420

  GStreamer | gst-ffmpeg | Ver: HEAD CVS





------- Comment #5 from Edward Hervey  2006-12-12 12:37 UTC -------
This still doesn't fix it.

The problem seems to be that mov_write_moov_tag (called by _write_trailer())
doesn't compute the SampleDuration for each track based on the frame size, it
assumes that frame_size never changed :(

So the choice is now :
_ Either figure out the total duration of the file right at the beginning
(contained in newsegment), so we can give the proper value for ->frame_size
(kind of hacky).
_ Modify libavformat/movenc.c so that it recomputes the SampleDuration before
writing the headers in _write_trailer().

Example pipeline where the behaviour is still broken (mpeg4/mp3 in .mp4):

gst-launch-0.10 filesrc location=/data/multimedia/matrix.ogg ! decodebin
name=dbin ! queue name=vinq ! videoscale ! video/x-raw-yuv,width=128,height=96
! ffenc_mpeg4 ! queue name=voutq ! ffmux_mp4 name=mux ! filesink
location=matrix.mp4 dbin. ! queue name=ainq ! audioconvert ! audioresample !
audiorate ! lame ! queue name=aoutq ! mux.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list