Intel GPU hardware acceleration + cluttersink

Nicolas Dufresne nicolas at ndufresne.ca
Tue Oct 3 01:24:29 UTC 2017


Le lundi 02 octobre 2017 à 15:05 -0700, horai a écrit :
> Today I tried to modify my current Gstreamer pipeline:
> sudo gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-
> name=(string)H264" !
> rtph264depay ! h264parse ! avdec_h264 ! autovideosink sync=false
> 
> I wanted to replace software avdec_h264 encoder with INTEL Vaapi
> hardware
> encoding plugin 'vaapiencode'
> The new pipeline should look like this:
> gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-
> name=(string)H264" !
> rtph264depay ! h264parse ! vaapidecode ! videoconvert ! cluttersink
> sync=false
> I guess the caps are compatible.
> 
> But it yields this message and I cannot run the video:
> WARNING: erroneous pipeline: could not link videoconvert0 to
> cluttergstvideosink0
> 
> According to this page it should work:
> http://gstreamer-devel.966125.n4.nabble.com/vaapidecode-to-xvimagesin
> k-td4664635.html
> 
> Does anyone know what I am doing wrong.
> I have version:
> Provides: 
> 1.2.4-0ubuntu1.1 - 
> 1.2.3-1 -

That is quite ancient, you will be lukcly if that works. In general
though, you may need vaapipostproc element to convert the vaapi output
to something you can read from the CPU.


More information about the gstreamer-devel mailing list