Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created April 3, 2026 22:21
Show Gist options
  • Select an option

  • Save mcandre/535769fed6533c6941d4770044f96326 to your computer and use it in GitHub Desktop.

Select an option

Save mcandre/535769fed6533c6941d4770044f96326 to your computer and use it in GitHub Desktop.
ffmpeg rencode video

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment