After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329963 - gstreamer CVS doesn't work with ffmpeg codecs
gstreamer CVS doesn't work with ffmpeg codecs
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
0.8.x
Other All
: Normal major
: 0.10.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-02-05 05:30 UTC by Matěj Cepl
Modified: 2006-02-17 11:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
WMA file which cannot be played (208.44 KB, audio/x-ms-wma)
2006-02-06 02:26 UTC, Matěj Cepl
Details

Description Matěj Cepl 2006-02-05 05:30:19 UTC
Please describe the problem:
When trying to play attached .wma file, gst-launch-0.10 has this to say: 
 
chelcicky:~$ gst-launch-0.10 filesrc 
location=/home/matej/WP/060108-sermon.mp3 ! ffdec_mp3 ! audioconvert ! 
audioresample ! alsasink 
Setting pipeline to PAUSED ... 
Pipeline is PREROLLING ... 
ERROR: from element /pipeline0/ffdec_mp30: Internal GStreamer error: 
negotiation problem.  Please file a bug at 
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. 
Additional debug info: 
gstffmpegdec.c(1226): gst_ffmpegdec_chain (): /pipeline0/ffdec_mp30: 
ffdec_mp3: input format was not set before data start 
ERROR: pipeline doesn't want to preroll. 
Setting pipeline to NULL ... 
FREEING pipeline ... 
chelcicky:~$ 
 

Steps to reproduce:
1. see above pipeline with gstreamer 0.10 from today's CVS  
2.   
3.   
  

Actual results:
no sound is produced and programs terminates permaturely  

Expected results:
sound is played (gst-launch-0.10 works with standard gst-plugins-*) 

Does this happen every time?
yes 

Other information:
Comment 1 Edward Hervey 2006-02-05 11:29:45 UTC
(In reply to comment #0)
> Please describe the problem:
> When trying to play attached .wma file, gst-launch-0.10 has this to say: 
> 

  Are you trying to play a .wma file or a .mp3 ?? The command line below is for mp3 decoding.

> chelcicky:~$ gst-launch-0.10 filesrc 
> location=/home/matej/WP/060108-sermon.mp3 ! ffdec_mp3 ! audioconvert ! 
> audioresample ! alsasink 
> Setting pipeline to PAUSED ... 
> Pipeline is PREROLLING ... 
> ERROR: from element /pipeline0/ffdec_mp30: Internal GStreamer error: 
> negotiation problem.  Please file a bug at 
> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. 
> Additional debug info: 
> gstffmpegdec.c(1226): gst_ffmpegdec_chain (): /pipeline0/ffdec_mp30: 
> ffdec_mp3: input format was not set before data start 
> ERROR: pipeline doesn't want to preroll. 
> Setting pipeline to NULL ... 
> FREEING pipeline ... 
> chelcicky:~$ 
> 

Several points:
.There are know issues with the ffmpeg mp3 decoder. You're better off using the mad decoder (gst-plugins-bad) or the fluendo mp3 plugin (http://store.fluendo.com).
.You should try using the following command line when decoding a file, decodebin will take care of figuring out the correct elements to use:
gst-launch filesrc location=... ! decodebin ! alsasink

> 
> Steps to reproduce:
> 1. see above pipeline with gstreamer 0.10 from today's CVS  
> 2.   
> 3.   
> 
> 
> Actual results:
> no sound is produced and programs terminates permaturely  
> 
> Expected results:
> sound is played (gst-launch-0.10 works with standard gst-plugins-*) 
> 
> Does this happen every time?
> yes 
> 
> Other information:
> 

Comment 2 Matěj Cepl 2006-02-06 02:24:11 UTC
Sorry, wrong command line. It should read:

chelcicky:~$ gst-launch-0.8 filesrc location=hurnik.wma ! ffdec_wmav2 ! audioconvert ! audioresample ! alsasink
WARNING: erroneous pipeline: no element "audioresample"
         Trying to run anyway.
RUNNING pipeline ...
ERROR: from element /pipeline0/ffdec_wmav20: Internal GStreamer error: pad problem.  File a bug.
Additional debug info:
gstpad.c(2562): gst_pad_set_explicit_caps: /pipeline0/ffdec_wmav20:
failed to negotiate (try_set_caps with "audio/x-raw-int, rate=(int)8000, channels=(int)1, signed=(boolean)true, endianness=(int)1234, width=(int)16, depth=(int)16" returned REFUSED)
ERROR: from element /pipeline0/ffdec_wmav20: Internal GStreamer error: negotiation problem.  File a bug.
Additional debug info:
gstffmpegdec.c(681): gst_ffmpegdec_negotiate: /pipeline0/ffdec_wmav20:
Failed to link ffmpeg decoder (wmav2) to next element
Execution ended after 1 iterations (sum 24897000 ns, average 24897000 ns, min 24897000 ns, max 24897000 ns).
chelcicky:~$

The wma file is attached and the original is on http://www.hudba.cx/klasika/hurnik.wma
Comment 3 Matěj Cepl 2006-02-06 02:26:44 UTC
Created attachment 58790 [details]
WMA file which cannot be played
Comment 4 Matěj Cepl 2006-02-06 02:27:47 UTC
And on the decodebin note:

chelcicky:~$ gst-launch-0.8 filesrc location=hurnik.wma ! decodebin ! audioconvert ! audioresample ! alsasink
WARNING: erroneous pipeline: no element "audioresample"
         Trying to run anyway.
RUNNING pipeline ...
ERROR: from element /pipeline0/decodebin0/ffdec_wmav20: Internal GStreamer error: pad problem.  File a bug.
Additional debug info:
gstpad.c(2562): gst_pad_set_explicit_caps: /pipeline0/decodebin0/ffdec_wmav20:
failed to negotiate (try_set_caps with "audio/x-raw-int, rate=(int)44100, channels=(int)2, signed=(boolean)true, endianness=(int)1234, width=(int)16, depth=(int)16" returned REFUSED)
ERROR: from element /pipeline0/decodebin0/ffdec_wmav20: Internal GStreamer error: negotiation problem.  File a bug.
Additional debug info:
gstffmpegdec.c(681): gst_ffmpegdec_negotiate: /pipeline0/decodebin0/ffdec_wmav20:
Failed to link ffmpeg decoder (wmav2) to next element
Execution ended after 3 iterations (sum 409754000 ns, average 136584666 ns, min 116000 ns, max 401347000 ns).
chelcicky:~$

:-)
Comment 5 Edward Hervey 2006-02-06 10:30:46 UTC
changing this to 0.8.x

For 0.10, the only thing missing is the asf demuxer which should arrive soon in cvs.
Comment 6 Wim Taymans 2006-02-17 11:57:45 UTC
plays fine with CVS asfdemux/ffdec_wmav2, closing.