bootlin / libva-v4l2-request

LibVA implementation for the Linux Video4Linux2 Request API
Other
76 stars 59 forks source link

need help with bug fixing #41

Closed neon12345 closed 2 years ago

neon12345 commented 2 years ago

I know this library is deprecated but it is still a good solution for software with vaapi only support .

With some patches to the pbp-tools I can now e.g. stream my desktop or transcode files with ffmpeg.

Using the command

LIBVA_DRIVER_NAME=v4l2_request LIBVA_V4L2_REQUEST_VIDEO_PATH=/dev/video1 LIBVA_V4L2_REQUEST_MEDIA_PATH=/dev/media0 ffmpeg -hwaccel vaapi -vaapi_device /dev/video1 -i big_buck_bunny_720p_h264.mov -an output.mp4 -loglevel verbose

produces a working file with speed=~2.33x but the result has frame glitches and artefacts.

Likewise with desktop streaming it seems that some frames are disordered but the result is recognizable.

(Old frames seem to merge periodically with new ones, which possibly means a surface/image/picture is not properly cleared or initialized)