[Bug 761392] New: avimux writes broken headers for mp3 audio stream

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Feb 1 11:12:50 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=761392

            Bug ID: 761392
           Summary: avimux writes broken headers for mp3 audio stream
    Classification: Platform
           Product: GStreamer
           Version: 1.4.5
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: nyushchenko at dev.rtsoft.ru
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Easy way to reproduce:

nikita at hugenb:/tmp$ gst-launch-1.0 alsasrc ! lamemp3enc ! avimux ! filesink
location=/tmp/f.avi
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:01.299496783
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...


nikita at hugenb:/tmp$ gst-launch-1.0 playbin uri=file:///tmp/f.avi
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAviDemux:avidemux0:
Could not demultiplex stream.
Additional debug info:
gstavidemux.c(4043): gst_avi_demux_stream_header_pull ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAviDemux:avidemux0:
failed to parse stream, ignoring
ERROR: from element
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAviDemux:avidemux0:
Could not demultiplex stream.
Additional debug info:
gstavidemux.c(4360): gst_avi_demux_stream_header_pull ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstAviDemux:avidemux0:
Could not get/create index
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...


Attempt to debug in shows that gst_avi_mux_riff_get_avi_header() is called
before first call to gst_avi_mux_audsink_scan_mpeg_audio(), which causes
audpad->hdr to be written before it is completely initialized. In particular it
is written with hdr.scale=1, although later hdr.scale is set to other value.

-- 
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