ffmpeg reencode video Many video playback systems struggle to process legacy formats (AVI, MPEG, MPG, WMV, etc.) Recommend reencoding these into MP4 format. ffmpeg -i <input-file> -c:v libx264 -c:a aac <output-basename>.mp4