Recommended Encoding Parameters
The following parameters are recommended for various purposes in CBR encoding (frame rate: $fps; bit rate: $bitrate) when the input file test.yuv is 1080p.
- Low latency
ffmpeg -s 1920x1080 -i test.yuv -c:v libhw265 -qualityset 6 -rc 1 -abr_bitrate $bitrate -fps_num $fps -keyint $fps*2 -adap_I 0 -bframe_nums 0 -delay 1 -frame_threads 4 -wpp_threads 4 -analysis_threads 3 test.mp4
- High definition
ffmpeg -s 1920x1080 -i test.yuv -c:v libhw265 -qualityset 6 -rc 1 -abr_bitrate $bitrate -fps_num $fps -keyint $fps*2 -adap_I 0 -bframe_nums 3 -delay 4 -frame_threads 4 -wpp_threads 4 -analysis_threads 3 test.mp4
- Video on demand
ffmpeg -s 1920x1080 -i test.yuv -c:v libhw265 -qualityset 2 -rc 1 -abr_bitrate $bitrate -fps_num $fps -keyint $fps*2 -adap_I 1 -bframe_nums 7 -delay 25 -frame_threads 4 -wpp_threads 4 -analysis_threads 3 test.mp4
- No special encoding requirements
ffmpeg -s 1920x1080 -i test.yuv -c:v libhw265 -qualityset 6 -rc 1 -abr_bitrate $bitrate -fps_num $fps -keyint $fps*2 -adap_I 0 -bframe_nums 3 -delay 4 -frame_threads 4 -wpp_threads 4 -analysis_threads 3 test.mp4
Parent topic: FFmpeg+HW265Enc Compilation and Usage Guide