
Software x264 vs Hardware Encoders: Quality per Bitrate Compared
Compare libx264 with NVENC, VAAPI, QSV and VideoToolbox in FFmpeg 7.1 on your own footage using VMAF, and decide when speed or quality per bit should win.
Tag
16 posts

Compare libx264 with NVENC, VAAPI, QSV and VideoToolbox in FFmpeg 7.1 on your own footage using VMAF, and decide when speed or quality per bit should win.

Encode H.264, HEVC and AV1 on Intel GPUs with FFmpeg 7.1 QSV encoders: libvpl and driver setup, hardware frames, ICQ quality, presets and look-ahead.

Encode with h264_nvenc and hevc_nvenc in FFmpeg 7.1 on NVIDIA GPUs: driver needs, a working command, quality settings, session limits and fixes.

Encode H.264 and HEVC on Intel and AMD GPUs in FFmpeg 7.1 with h264_vaapi and hevc_vaapi: device setup, hwupload, rate control and keeping frames on the GPU.

Use FFmpeg 7.1 with h264_videotoolbox and hevc_videotoolbox on Apple silicon: quality and bitrate options, the hvc1 tag for QuickTime, and hardware decoding.

Learn the difference between FFmpeg hardware decoding with -hwaccel and hardware encoding with a codec such as h264_nvenc, and why mixing them costs copies.

Choose between MP4, MKV and WebM by use case: web playback, archiving, editing and streaming, with what each allows and the FFmpeg commands to convert.

A codec compresses audio or video and a container packages the compressed streams in one file. See the difference with ffprobe and learn to swap containers.

Resize video with the FFmpeg scale filter, keep the aspect ratio with -1 and -2, fit inside a box, and pick a scaling algorithm for sharp results.

Pull the audio track out of a video with FFmpeg, either by copying it unchanged or by converting it to MP3, AAC, Opus or WAV, with commands for each case.

Cut a clip from a video with FFmpeg and know when -ss, -to and -t land on the exact frame, and when stream copy snaps to the nearest keyframe.

Convert MOV, MKV, AVI or WebM files to a widely playable MP4 with H.264 video and AAC audio using one FFmpeg command, and learn what each option does.