Table of Contents

ffmpeg - Conversions - Convert AVI to H264

Software Encoding

ffmpeg -i input.avi -c:v libx264 output.mp4

AMD GPU Encoding - Linux

ffmpeg -i input.avi -c:v h264_vaapi output.mp4

AMD GPU Encoding - Windows

ffmpeg -i input.avi -c:v h264_amf output.mp4

NOTE: h264_amf is only on Windows.


NVIDIA GPU Encoding

ffmpeg -i input.avi -c:v h264_nvenc output.mp4