Why does this not link?

Sebastian Dröge slomo at coaxion.net
Sat Dec 5 23:57:44 PST 2015


Hi Ian,

please try to provide only the minimal information needed in mails,
otherwise you're going to cause a lot of traffic for everybody. Also
because of the size of your mail, I can't directly reply to it
currently.

In any case, the problem is that the caps are incompatible as you will
see from the log (please put logs into attachments, not inline into a
mail):

> 0:00:10.365297298  2080 0xb5c04d80 DEBUG               GST_CAPS 
> gstpad.c:2020:gst_pad_link_check_compatible_unlocked:<decodebin-
> element:src_1> 
> src caps audio/x-raw, format=(string)F32LE,
> layout=(string)interleaved, 
> rate=(int)48000, channels=(int)2, channel-
> mask=(bitmask)0x0000000000000003
> 0:00:10.365336714  2080 0xb5c04d80 DEBUG               GST_CAPS 
> gstpad.c:2022:gst_pad_link_check_compatible_unlocked:<queue4:sink&
> gt; sink 
> caps audio/x-raw, rate=(int)44100, channels=(int)1, 
> format=(string)S16LE, layout=(string)interleaved; audio/x-raw, 
> rate=(int)44100, layout=(string)interleaved, format=(string){ S8, U8,
> S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, 
> S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE,
> U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE
> }, 
> channels=(int)[ 1, 2147483647 ]
> [...]
> 0:00:10.365557535  2080 0xb5c04d80 DEBUG               GST_CAPS 
> gstpad.c:2040:gst_pad_link_check_compatible_unlocked: caps are
> notcompatible
> 0:00:10.365573773  2080 0xb5c04d80 INFO                GST_PADS 
> gstpad.c:2176:gst_pad_link_prepare: caps are incompatible

Your sinkpad wants 48kHz, your srcpad provide 44.1kHz. Try putting an
audioresample (and ideally also *always* an audioconvert although not
required) element before sink elements. That should fix it here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151206/fc070a91/attachment.sig>


More information about the gstreamer-devel mailing list