GNOME Bugzilla – Bug 301785
"Internal GStreamer error: negotiation problem." when playing mp3s
Last modified: 2005-07-05 02:12:32 UTC
Version details: 0.8.8-7ubuntu5 Distribution/Version: Ubuntu 5.04 Whenever I attempt to play an mp3 with rhythmbox I get the error dialogs: Internal GStreamer error: negotiation problem. File a bug. Internal GStreamer error: pad problem. File a bug. rhythmbox --gst-debug-level=1 gives: ERROR (0xa8ada0 - 309540:51:51.592332000) GST_PADS( 9295) gstpad.c(2563):gst_pad_set_explicit_caps:<mad0> failed to negotiate (try_set_caps with "audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)44100, channels=(int)2" returned REFUSED) ERROR (0xa8ada0 - 309540:51:51.593027000) mad( 9295) gstmad.c(1199):gst_mad_check_caps_reset:<mad0> Failed to negotiate 44100 Hz, 2 channels ERROR (0xa8ada0 - 309540:51:51.593269000) scheduler( 9295) gstoptimalscheduler.c(2797):gst_opt_scheduler_iterate:<GstOptScheduler@0xa29c40> in error state Other formats (at least Vorbis) play fine.
Looks like a gstreamer bug.
Could you run rhythmbox like this % rhythmbox --gst-debug=*:5 --gst-debug-no-color 2>&1 | bzip2 > gstdebug.log.bz2 and reproduce the error and then attach the log to the bug report? Cheers -Tim
Created attachment 45644 [details] gstreamer debug log Hope this helps.
Possibly an alsasink bug? gstpad.c(1342):gst_pad_link_call_link_functions:<alsasink0:sink> calling link function with caps audio/x-raw-int, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true gstalsa.c(1267):gst_alsa_link: found format S16_LE gstalsa.c(1659):gst_alsa_probe_hw_params: Probing format: S16_LE 44100Hz, 2 gstalsa.c(1701):gst_alsa_probe_hw_params:<alsasink0> "snd_pcm_hw_params_set_period_size_near (this->handle, hw_params, &period_size, 0)": Invalid argument gstpad.c(1346):gst_pad_link_call_link_functions:<alsasink0:sink> got reply -1 from link function gstpad.c(1350):gst_pad_link_call_link_functions:<alsasink0:sink> pad doesn't accept caps audio/x-raw-int, rate=(int)44100, channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16, signed=(boolean)true gstpad.c(1420):gst_pad_link_try: link refused, returning Cheers -Tim
I'm inclined to agree. Bug 173102 may be of interest.
No, unrelated.
I sometimes get this problem in TunesBrowser (http://crazney.net/programs/itunes/tunesbrowser.html). Very occasional though. I have a user that I think gets the problem all the time. I'll try and get a gst debug log from him, if you like. David
David, where's (web)CVS of tunesbrowser? This may just as well be a problem in tunesbrowser. For us, it's easier if you reproduce it in a known-good app such as RB or Totem (or commandline).
This seems to be working now. I've since switched from x86_64 to i386 (on the same hardware obviously) but I'm pretty sure I remember trying rhythmbox again initially and it not working. I guess some update since must have fixed the problem.
I fixed a bug in alsasink related to this - probably that fixed it. Thanks for reporting.
*** Bug 301848 has been marked as a duplicate of this bug. ***
Ronald, Can you please which file, release or version you fixed this bug in? I have updated my gstreamer to 0.8.8-3 which is the latest in the debian testing main repository, and I still see that same problem. Thanks,
gst-plugins/ext/alsa/gstalsa.c
OK, it looks fixed now to me. I re-updated everything and tried again; the problem is gone. Many thanks.