[FFmpeg-user] Using Hardware Accelerated Encoder Produce Bigger File

Ali Shirvani aj.shirvani at gmail.com
Tue Sep 11 15:08:37 EEST 2018

Hi all,
I encoded a raw YUV video once with h264_vaapi and once with libx264 codec.
The output of h264_vaapi is about 4.8 MB, while the output of libx264 is
1.1 MB.

Here is the commands:
ffmpeg -loglevel trace -vaapi_device /dev/dri/renderD128 -video_size
1920x1080 -i raw_1080.yuv -vf 'format=nv12,hwupload' -vcodec h264_vaapi

ffmpeg -loglevel trace  -video_size 1920x1080 -i raw_1080.yuv  -vcodec
libx264  out_libx264.mp4

Is this variation in output size normal? or should I tune some settings?


More information about the ffmpeg-user mailing list