GNOME Bugzilla – Bug 148454
[vorbisdec] negotiation problems
Last modified: 2005-08-25 23:48:19 UTC
Running this: gst-launch filesrc location=<ogg file> ! oggdemux ! vorbisdec ! audioconvert ! esdsink gives me the following output: RUNNING pipeline ... ERROR: from element /pipeline0/vorbisdec0: Internal GStreamer error: pad problem. File a bug. Additional debug info: gstpad.c(2487): gst_pad_set_explicit_caps: /pipeline0/vorbisdec0: failed to negotiate (try_set_caps with "audio/x-raw-float, rate=(int)48000, channels=(int)2, endianness=(int)1234, width=(int)32, buffer-frames=(int)0" returned REFUSED) Execution ended after 1301 iterations (sum 792996000 ns, average 609528 ns, min 94000 ns, max 174828000 ns). I use gst-plugins version 0.8.2.
*** Bug 148455 has been marked as a duplicate of this bug. ***
Add an audioscale after audioconvert. So your gst-launch line becomes: gst-launch filesrc location=<ogg file> ! oggdemux ! vorbisdec ! audioconvert ! audioscale ! esdsink See if this fixed the problem.
Yes, now it plays the file.
Ok, please close the bug :) The problem was that esd only accepts a certain sample rate audio and your ogg/vorbis file had a different sample rate. hence the requirement for audioscale.
Ok, thank you. I saw on the output of "gst-inspect esdsink" the 44100. But my file has a rate of 48000. So i can't work. Some better error message had helped me here. I tried also osssink, this works. And I tried alsasink, but this doesn't work (same output like for esdsink). "gst-inspect alsasink" shows me for rate "[ 8000, 192000 ]". Doesn't this include a rate of 48000. "gst inspect osssink" showed me for rate "[ 1, 2147483647 ]".
No; those are template ranges. The actual *device* ranges will be derived on runtime.