gpu acceleration for encoding
Opened this issue · 2 comments
hi. I modified the video stitching script to use nvidia hardware acceleration i got on my windows PC. Testing on some files of mine :D
[1]format=gbrp[fmt];[L_fov][R_fov][fmt]maskedmerge,overlay=shortest=1" -c:v h264_nvenc -profile high444p -pixel_format yuv444p -preset medium -b:v 30M -b:a 192k -vsync vfr -y V.$out'_STITCHED'.MP4
so i'm not limited to the 24fps hardcoded before ;-)
PS: i'll try to add AMD acceleration when power up my laptop ;-)
Hi @allegfede actually, yes, I was using one of these on an AMD GPU:
-c:v av1_amf
or -c:v hevc_amf
or h264_amf
It is necessary to set it as variables and check the system's GPU at the beginning.
My biggest issue was not with hardware acceleration, but rather with lines on overlapping images, and constantly changing FOW depending on the distance from the object like in the original stitching software.
i'm waiting canonical (ubuntu) will include video coding in open source version of the AMD radeon driver :-)
at the moment it's only avalaible if installed the proprietary amd driver :-)