Post Tue Sep 03, 2019 5:27 pm

docker /dev/dri/renderD128 for VA-API

After failing to get intel quick sync to work, I learnt about va-api and have been trying to get this to work via docker on a spare laptop with the hope to move this to my NAS when I have it figured.

As it stands, I can manually hardware transcode using ffmpeg directly. I can also hardware transcode with jellyfin (emby) via its docker. I am happy that hardware wise everything is fine.

With the serviio docker I cannot get it to hardware transcode. If I run;

  Code:
sudo docker exec -it serviio /usr/bin/ffmpeg -vaapi_device /dev/dri/renderD128 -i "/media/user/Linux/test/test.mp4" -vf 'format=nv12,hwupload,scale_vaapi=w=4096:h=2048' -c:v h264_vaapi "/media/user/Linux/test/test2.mp4"


I get;

  Code:
[AVHWDeviceContext @ 0x7f94d1647580] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error


I have
  Code:
--device=/dev/dri/renderD128:/dev/dri/renderD128
set on both containers