Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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
 

Tags
crf, ffmpeg, h264_vaapi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:43.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.