How to know if the two elements [ pad's ] could be linked ?

Sebastian Dröge sebastian at centricular.com
Sun Dec 27 23:43:00 PST 2015


On So, 2015-12-27 at 21:28 -0800, Ashish Kumar Mishra wrote:
> Hi All , 
> 
> 1) Currently when i am building an test pipeline , many times i face
> the
> problem that the ELEMENTS which
>     i am trying to link are not having compatible pad's .
>     This led's to *WARNING: erroneous pipeline: could not link  XXXX
> to YYYY 
> *
> 
> 2) Now then i use " gst-inspect-1.0 " to manually check the data
> types  . 
>  
> So is there any standard / preferred / simpler way to verify that the
> elements linked are compatible to each other before actual testing
> with gst-launch-1.0 . 
> [...]

You have to check if the caps are compatible, but gst-inspect-1.0 does
not necessarily tell you that if a pad is only accepting a subset of
the caps shown there at a later time (e.g. a sink after opening the
output device and probing what formats the hardware supports).

There is no real standard way to check if two pads can be linked other
than checking the caps, and knowing about what elements are available
for converting between different caps and often putting those
converters between two elements all the time (as they don't do anything
if no conversion is needed, but conversion might be needed sometimes
depending on other factors).

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- 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/20151228/577abd4e/attachment.sig>


More information about the gstreamer-devel mailing list