View Single Post
Old 3rd August 2020, 20:19   #1  |  Link
desktop_ready
Registered User
 
Join Date: Jul 2020
Posts: 2
FFmpeg and h264_vaapi

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
desktop_ready is offline   Reply With Quote