issue to play a rtsp video with hardware acceleration in Clutter

Jezequel, Erwan e.jezequel at fondation-parkings.ch
Thu Apr 3 05:59:34 PDT 2014


so I check GStreamer debug logs and in all the output I get, I found things
like this:
gst_element_get_compatible_pad:<vaapidecode0> Could not find a compatible
pad to link to cluttergstvideosink0:sink
gst_element_link_pads_full: no link possible from vaapidecode0 to
vaapidecode0

So it seems that the link between vaapidecode and vaapidecode doesn't work.

Is there something to fix it or a workaround?

Thank you.


Portion of log filtered on "clutter" :
18057:0:00:00.323023826 18594  0xa2cae40 DEBUG       GST_ELEMENT_PADS
gstutils.c:798:gst_element_get_compatible_pad_template: Looking for a
suitable pad template in cluttergstvideosink0 out of 1 templates...
18063:0:00:00.323072866 18594  0xa2cae40 INFO        GST_ELEMENT_PADS
gstutils.c:1123:gst_element_get_compatible_pad:<cluttergstvideosink0> Could
not find a compatible pad to link to vaapidecode0:src
18064:0:00:00.323078533 18594  0xa2cae40 DEBUG       GST_ELEMENT_PADS
gstutils.c:1687:gst_element_link_pads_full: trying dest pad
cluttergstvideosink0:sink
18065:0:00:00.323083712 18594  0xa2cae40 DEBUG       GST_ELEMENT_PADS
gstutils.c:1006:gst_element_get_compatible_pad: finding pad in vaapidecode0
compatible with cluttergstvideosink0:sink
18066:0:00:00.323090792 18594  0xa2cae40 INFO                GST_PADS
gstutils.c:936:gst_pad_check_link: trying to link vaapidecode0:src and
cluttergstvideosink0:sink
18067:0:00:00.323097515 18594  0xa2cae40 DEBUG               GST_CAPS
gstutils.c:2762:gst_pad_query_caps:<cluttergstvideosink0:sink> get pad caps
with filter (NULL)
18069:0:00:00.323107782 18594  0xa2cae40 DEBUG               GST_PADS
gstpad.c:3445:gst_pad_query:<cluttergstvideosink0:sink> doing query
0xa72f750 (caps)
18070:0:00:00.323114318 18594  0xa2cae40 DEBUG               GST_PADS
gstpad.c:3467:gst_pad_query:<cluttergstvideosink0:sink> sent query
0xa72f750 (caps), result 1
18071:0:00:00.323120385 18594  0xa2cae40 DEBUG               GST_CAPS
gstutils.c:2769:gst_pad_query_caps:<cluttergstvideosink0:sink> query
returned video/x-raw, format=(string)AYUV, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)I420, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)YV12, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)I420, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)YV12, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string){ RGBA, BGRA }, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string){ RGB, BGR }, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
18085:0:00:00.323237488 18594  0xa2cae40 DEBUG       GST_ELEMENT_PADS
gstutils.c:1102:gst_element_get_compatible_pad:<vaapidecode0> Could not
find a compatible unlinked always pad to link to cluttergstvideosink0:sink,
now checking request pads
18086:0:00:00.323243012 18594  0xa2cae40 DEBUG               GST_CAPS
gstutils.c:2762:gst_pad_query_caps:<cluttergstvideosink0:sink> get pad caps
with filter (NULL)
18088:0:00:00.323252739 18594  0xa2cae40 DEBUG               GST_PADS
gstpad.c:3445:gst_pad_query:<cluttergstvideosink0:sink> doing query
0xa72f6f0 (caps)
18089:0:00:00.323258879 18594  0xa2cae40 DEBUG               GST_PADS
gstpad.c:3467:gst_pad_query:<cluttergstvideosink0:sink> sent query
0xa72f6f0 (caps), result 1
18090:0:00:00.323264798 18594  0xa2cae40 DEBUG               GST_CAPS
gstutils.c:2769:gst_pad_query_caps:<cluttergstvideosink0:sink> query
returned video/x-raw, format=(string)AYUV, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)I420, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)YV12, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)I420, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string)YV12, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string){ RGBA, BGRA }, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ];
video/x-raw, format=(string){ RGB, BGR }, width=(int)[ 1, 2147483647 ],
height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
18097:0:00:00.323365773 18594  0xa2cae40 INFO        GST_ELEMENT_PADS
gstutils.c:1123:gst_element_get_compatible_pad:<vaapidecode0> Could not
find a compatible pad to link to cluttergstvideosink0:sink
18099:0:00:00.323381137 18594  0xa2cae40 DEBUG       GST_ELEMENT_PADS
gstutils.c:1779:gst_element_link_pads_full: no link possible from
vaapidecode0 to cluttergstvideosink0
18110:0:00:00.324394670 18594  0xa2cae40 DEBUG                    bin
gstbin.c:1893:add_to_queue:<pipeline0> adding 'cluttergstvideosink0' to
queue
18113:0:00:00.324410678 18594  0xa2cae40 DEBUG                    bin
gstbin.c:2033:update_degree:<pipeline0> element cluttergstvideosink0 not
linked on any sinkpads
18121:0:00:00.324451870 18594  0xa2cae40 DEBUG                    bin
gstbin.c:2094:gst_bin_sort_iterator_next:<pipeline0> queue head gives
cluttergstvideosink0
18124:0:00:00.324465569 18594  0xa2cae40 DEBUG                    bin
gstbin.c:2033:update_degree:<pipeline0> element cluttergstvideosink0 not
linked on any sinkpads
18125:0:00:00.324473006 18594  0xa2cae40 INFO              GST_STATES
gstbin.c:2227:gst_bin_element_set_state:<cluttergstvideosink0> current NULL
pending VOID_PENDING, desired next READY
18128:0:00:00.324500239 18594  0xa2cae40 DEBUG                    bin
gstbin.c:2322:gst_bin_element_set_state:<pipeline0> setting element
cluttergstvideosink0 to READY, base_time 0:00:00.000000000


Erwan JEZEQUEL
Service Informatique
079 946 02 91


2014-04-02 20:33 GMT+02:00 Sebastian Dröge <sebastian at centricular.com>:

> On Di, 2014-04-01 at 22:13 +0200, Jezequel, Erwan wrote:
> > Thank you for your response.
> >
> > I did a new code based on something find on internet but it still doesn't
> > work.
> >
> > The video doesn't display in the clutter window and I don't understand
> what
> > is missing to work.
> > [...]
>
> Does all the linking work, is the pad-added callback called and does the
> linking there work, do all the state changes work successfully, do you
> get error messages on the bus or any other output on the terminal?
>
> Also by checking the GStreamer debug logs you should be able to see if
> data flow is happening at all, and if it reaches cluttersink and if not
> why it doesn't. You can enable the logs e.g. with setting the
> environment variable GST_DEBUG to 6 (to get a lot of output).
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140403/ed110882/attachment.html>


More information about the gstreamer-devel mailing list