GNOME Bugzilla – Bug 758647
avdec_aac: Negotiation failure
Last modified: 2018-01-25 13:09:49 UTC
AAC decoder seems to fail negotiate media stream format with audio sink Tested on gstreamer 1.6.0 and higher with playbin pipeline and souphttpsrc There is a debug dump with level 4 0:00:13.023804000 6462 0x10aec6ad0 INFO GST_STATES gstelement.c:2235:void _priv_gst_element_state_changed(GstElement *, GstState, GstState, GstState):<avdec_aac0> notifying about state-changed READY to PAUSED (VOID_PENDING pending) 0:00:13.034386000 6462 0x10aec6ad0 INFO GST_PADS gstpad.c:2234:GstPadLinkReturn gst_pad_link_prepare(GstPad *, GstPad *, GstPadLinkCheck): trying to link avdec_aac0:src and decodepad0:proxypad1 0:00:13.034438000 6462 0x10aec6ad0 INFO GST_PADS gstpad.c:2440:GstPadLinkReturn gst_pad_link_full(GstPad *, GstPad *, GstPadLinkCheck): linked avdec_aac0:src and decodepad0:proxypad1, successful 0:00:13.034458000 6462 0x10aec6ad0 INFO GST_EVENT gstevent.c:1374:GstEvent *gst_event_new_reconfigure(): creating reconfigure event 0:00:13.035587000 6462 0x10aec6ad0 INFO GST_ELEMENT_PADS gstelement.c:897:GstPad *gst_element_get_static_pad(GstElement *, const gchar *): found pad osxaudiosink0:sink 0:00:13.040474000 6462 0x10aec6ad0 ERROR default audio-info.c:271:gboolean gst_audio_info_from_caps(GstAudioInfo *, const GstCaps *): no rate property given 0:00:13.040761000 6462 0x10aec6ad0 INFO audiodecoder gstaudiodecoder.c:2340:gboolean gst_audio_decoder_sink_eventfunc(GstAudioDecoder *, GstEvent *):<avdec_aac0> upstream stream tags: taglist, organization=(string)equilibrium, genre=(string)equilibrium, location=(string)pcradio.ru; 0:00:13.040816000 6462 0x10aec6ad0 INFO audiodecoder gstaudiodecoder.c:2340:gboolean gst_audio_decoder_sink_eventfunc(GstAudioDecoder *, GstEvent *):<avdec_aac0> upstream stream tags: taglist, organization=(string)equilibrium, genre=(string)equilibrium, location=(string)pcradio.ru; 0:00:13.043795000 6462 0x10aec6ad0 ERROR libav :0:: element type mismatch 1 != 0 0:00:13.044425000 6462 0x10aec6ad0 INFO GST_EVENT gstevent.c:679:GstEvent *gst_event_new_caps(GstCaps *): creating caps event audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003 0:00:13.044493000 6462 0x10aec6ad0 INFO GST_ELEMENT_PADS gstelement.c:646:gboolean gst_element_add_pad(GstElement *, GstPad *):<decodebin0> adding pad 'src_0' 0:00:13.044609000 6462 0x10aec6ad0 INFO GST_PADS gstpad.c:2234:GstPadLinkReturn gst_pad_link_prepare(GstPad *, GstPad *, GstPadLinkCheck): trying to link decodebin0:src_0 and src_0:proxypad2 0:00:13.044638000 6462 0x10aec6ad0 INFO GST_PADS gstpad.c:2440:GstPadLinkReturn gst_pad_link_full(GstPad *, GstPad *, GstPadLinkCheck): linked decodebin0:src_0 and src_0:proxypad2, successful 0:00:13.044660000 6462 0x10aec6ad0 INFO GST_EVENT gstevent.c:1374:GstEvent *gst_event_new_reconfigure(): creating reconfigure event 0:00:13.044742000 6462 0x10aec6ad0 INFO GST_ELEMENT_PADS gstelement.c:646:gboolean gst_element_add_pad(GstElement *, GstPad *):<uridecodebin0> adding pad 'src_0' 0:00:13.044778000 6462 0x10aec6ad0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:364:GstElement *gst_element_factory_create(GstElementFactory *, const gchar *): creating element "input-selector" 0:00:13.044904000 6462 0x10aec6ad0 INFO GST_ELEMENT_PADS gstelement.c:646:gboolean gst_element_add_pad(GstElement *, GstPad *):<GstInputSelector@0x10c1a11c0> adding pad 'src' There are two errors on 0:00:13.040474000 and 0:00:13.043795000 (last one sometimes repeats several times. As a result stream on start broken When testing gstreamer v. 1.4.5 - everything ok.
Could you make an input file/stream available please which lets us reproduce the issue? Also, please put debug logs into attachments, they're unreadable when posted inside a bugzilla comment box.
Created attachment 316230 [details] Pipeline logs
Comment on attachment 316230 [details] Pipeline logs Pipeline used: gst-launch-1.0 --gst-debug-level=4 playbin uri="http://icecast.omroep.nl/radio1-bb-aac" Sorry for previous log post and thank You for a fast reply!
This works fine for me with git master and 1.6.1 (on Linux). Could you provide a full --gst-debug-level=6 log please? (compressed with xz -9 or bz2/gzip)
Created attachment 316232 [details] Logs with debug lvl6 Well, bad sound in beginning of the stream happens not always (or possibly sometimes bad sound missing fast). Try to launch pipeline few times. Logs attached.
I tried to install GStreamer SDK (for iOS & MacOSX) versions from 1.4.5 to 1.6.1. This bug comes with version 1.5.90 and exist till 1.6.1.
I don't see anything in the log to indicate that negotiation is failing? It seems to decode just fine? Still works fine for me with current GStreamer, also no bad sound at the beginning. Closing this for now. Please feel free to re-open if it's still a problem with current versions of GStreamer, thanks!