Hello,
Not sure if this is the right forum.
I have an Intel CPU and I wanted to use hardware acceleration to encode videos in H.264.
Without the hardware acceleration, I am currently having good results with the veryslow preset (which is using CRF 23 I believe):
Code:
ffmpeg -i <input> -acodec aac -vcodec libx264 -preset veryslow -y <output>
With the hardware acceleration, I can use:
Code:
ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i <input> -acodec aac -vcodec h264_vaapi -b:v 6M -y <output>
As you can see, I manually specified the bitrate (6M) which does not result in the same quality as using CRF.
Is there any way I can improve the quality of the results without messing too much with the parameters depending on the video ?
Thanks