GNOME Bugzilla – Bug 340698
oggdemux does not support Ogg FLAC streams
Last modified: 2006-05-05 11:31:14 UTC
The oggdemux element does not seem to support Ogg FLAC streams (when FLAC is using Ogg as transport layer; created with "flac --ogg file.wav" command). To illustrate the correct behaviour, this is the output of gst-launch for an Ogg Vorbis file: $ gst-launch-0.10 --gst-debug-level=3 filesrc location=credits.ogg ! oggdemux name=demux demux. ! vorbisdec ! audioconvert ! alsasink 2>&1 | grep "gst_element_add_pad:<demux>" INFO (0x810d558 - 0:00:00.235063000) GST_ELEMENT_PADS(22173) gstelement.c(602):gst_element_add_pad:<demux> adding pad 'serial_00007d08' This is the output of gst-launch for an Ogg Theora file: $ gst-launch-0.10 --gst-debug-level=3 filesrc location=sabrina.ogg ! oggdemux name=demux demux. ! theoradec ! ffmpegcolorspace ! xvimagesink 2>&1 | grep "gst_element_add_pad:<demux>" INFO (0x810be18 - 0:00:00.302831000) GST_ELEMENT_PADS(22424) gstelement.c(602):gst_element_add_pad:<demux> adding pad 'serial_7b00837e' INFO (0x810be18 - 0:00:00.303493000) GST_ELEMENT_PADS(22424) gstelement.c(602):gst_element_add_pad:<demux> adding pad 'serial_59eeb9e4' And the gst-launch command for an Ogg FLAC file: $ gst-launch-0.10 --gst-debug-level=3 filesrc location=track02.cdda.ogg ! oggdemux name=demux demux. ! flacdec ! audioconvert ! alsasink 2>&1 | grep "gst_element_add_pad:<demux>" Does not produce any output, what can only mean that the src (output) pad is not created.
This won't work yet, because flacdec only works pull-based at the moment, but it needs to be made to work chain-based as well, which is bug #340492. (If there is actually a problem in oggdemux as well I haven't checked)
This pipeline works for me, so I don't think oggdemux fails to create the pad: $ gst-launch-0.10 filesrc location=~/samples/ogg-flac/Yesterday.ogg ! oggdemux name=d d. ! audio/x-flac ! fakesink There's a warning about the segment though and the buffers aren't timestamped, but that's because flacdec doesn't implement a query function on the sink pad yet, I believe. Closing as duplicate of bug #340492 *** This bug has been marked as a duplicate of 340492 ***