Using VAAPI for Dynamic MP4
Hi together,
i am using the encoder on a ubuntu baremetal machine with vaapi-support (using it already for other things so its working in generally).
Actually i am trying to create a ffmpeg string to replace the default one which isnt using vaapi. But i cant get it working as im not experienced enough to create the right string for the encoder. Eventually someone did that before?
The original is:
-vf scale=-2:{$resolution} -movflags +faststart -preset veryfast -vcodec h264 -acodec aac -strict -2 -b:a {$autioBitrate}k -max_muxing_queue_size 1024 -y {$destinationFile}
I was trying with this one: -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -filter_hw_device foo -vf 'format=vaapi,scale_vaapi=w={$resolution}:trunc(ow/a/2)*2,hwupload' -movflags +faststart -preset veryfast -c:v h264_vaapi -c:a aac -strict -2 -b:a {$autioBitrate}k -max_muxing_queue_size 1024 -y {$destinationFile}
But the encoder spit out this log:
