Why is connecting vaapi decoder to v4l2sink stuttering?

Nicolas Dufresne nicolas at ndufresne.ca
Sun Nov 6 13:31:49 UTC 2022


Le sam. 5 nov. 2022, 13 h 16, Christian Hattenberger via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> a écrit :

> When I connect a vaapi decoder to v4l2sink the result is not as expected,
> same happens if I use autovideosink, I know for this I have to use
> vaapisink and it is working as expected, but is there a solution for
> v4l2sink? Can someone explain me the reason, is there a solution?
>
>
> gst-launch-1.0 filesrc location=/tmp/video.mp4 ! decodebin ! vaapipostproc
> ! video/x-raw,format=YUY2 ! v4l2sink device=/dev/video10
>

Its experimental, and I am not sure if vaapipostproc does produce dmabuf in
this case, but you can enable dmabuf-import on v4l2sink with property
io-mode=dmabuf-import . By default, the frames are cpu copied from VA
allocated memory into V4L2 allocated memory.

Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221106/47d66c8e/attachment.htm>


More information about the gstreamer-devel mailing list