AIFF and FLAC break GStreamer pipeline

Bug #1121132 reported by Michael Schwendt
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SoundConverter
Fix Released
High
GautierPortet

Bug Description

SoundConverter recognizes AIFF files, but upon converting them fails with a "GStreamer Error". For brevity, I don't include the debug output, but just the attempt at running the pipeline manually:

  $ gst-launch-0.10 giosrc location="file:///home/ms19/Music/test/love_theme.aiff" name=src ! decodebin name=decoder ! audiorate ! audioresample ! audioconvert ! audio/x-raw-int,rate=44100 ! audioresample ! audioconvert ! vorbisenc quality=0.6 ! oggmux ! giosink location="file:///home/ms19/love_theme.ogg"
  Setting pipeline to PAUSED ...
  Pipeline is PREROLLING ...
  ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decoder/GstAiffParse:aiffparse0: Internal data flow error.
  Additional debug info:
  aiffparse.c(1320): gst_aiff_parse_loop (): /GstPipeline:pipeline0/GstDecodeBin:decoder/GstAiffParse:aiffparse0:
  streaming task paused, reason not-negotiated (-4)
  ERROR: pipeline doesn't want to preroll.
  Setting pipeline to NULL ...
  Freeing pipeline ...

That is with Resampling enabled, but without resampling it also fails due to the "audioresample" element. The chosen pipeline then is:

  launching: 'giosrc location="file:///home/ms19/Music/test/love_theme.aiff" name=src ! decodebin name=decoder ! audiorate ! audioresample ! audioconvert ! vorbisenc quality=0.6 ! oggmux ! giosink location="file:///home/ms19/love_theme.ogg"'

On the contrary, if one reorders the pipeline, it would work:

 $ gst-launch-0.10 giosrc location="file:///home/ms19/Music/test/love_theme.aiff" name=src ! decodebin name=decoder ! audiorate ! audioconvert ! audioresample ! audio/x-raw-int,rate=44100 ! audioconvert ! vorbisenc quality=0.6 ! oggmux ! giosink location="file:///home/ms19/love_theme.ogg"
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 2441325818 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
$ file ~/love_theme.ogg
/home/ms19/love_theme.ogg: Ogg data, Vorbis audio, stereo, 44100 Hz, ~192000 bps, created by: Xiph.Org libVorbis I

I've visited the following page for that order: http://www.freedesktop.org/software/gstreamer-sdk/data/docs/latest/gst-plugins-base-plugins-0.10/gst-plugins-base-plugins-audioresample.html

Revision history for this message
Michael Schwendt (mschwendt) wrote :

Also converting from FLAC is not possible here (went back Fedora 18 to verify). Attached patch so far doesn't show any side-effects and makes it possible to convert from FLAC and AIFF.

summary: - AIFF breaks GStreamer pipeline
+ AIFF and FLAC break GStreamer pipeline
Revision history for this message
GautierPortet (kassoulet) wrote :

Fixed in https://github.com/kassoulet/soundconverter/commit/64b57db6911da1bd92df7082af2a4d2bebff8e45
Well, I don't have a file to test, but it sounds right.

Changed in soundconverter:
milestone: none → 2.0.5
assignee: nobody → GautierPortet (kassoulet)
importance: Undecided → High
status: New → Fix Committed
Changed in soundconverter:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.