Hardware accelerated transcoding with Intel VAAPI #1045
Replies: 1 comment 1 reply
|
Thanks for writing this up — it's a genuinely useful recipe, and the two non-obvious bits (the image ships ffmpeg but no VAAPI driver, and needing the host's I've added it to the wiki with attribution: Hardware-accelerated transcoding. The Dockerfile, compose bits and the hwaccel parts of your preset are inlined there, so it'll survive if your links ever go away. A couple of things I added on top of yours, in case they're wrong for your setup: a note that |
Uh oh!
There was an error while loading. Please reload this page.
Hi!
If someone is looking for options to enable hardware-accelerated video processing with ffmpeg inside of metube container, here is how I did it.
My setup is Debian 13 running on Intel N150 processor. I've Intel media drivers already installed on host machine and have these devices available:
Steps:
rendergroup:getent group render | cut -d: -f3/dev/dri/devices to the container: docker-compose.yml.In this example
-hwaccel vaapitells ffmpeg to use your Intel GPU to decode input videos,-vcodec hevc_vaapitells ffmpeg to use VAAPI hardware accelerated HEVC encoder to encode the output videos, andscale_vaapiis used to perform hardware-accelerated scaling.If links here stop working, most probably that means I've deleted my github account. In that case you can try to look at these examples by replacing
github.comwithcodeberg.orgin that links, probably it should work.All reactions