Skip to content

Instantly share code, notes, and snippets.

@jdvivar
Last active January 25, 2023 12:46
Show Gist options
  • Save jdvivar/e0cfb867eca5fd5fc818dcf5dc12ea35 to your computer and use it in GitHub Desktop.
Save jdvivar/e0cfb867eca5fd5fc818dcf5dc12ea35 to your computer and use it in GitHub Desktop.
Simple ffmpeg one liner
# With a specific codec
-i input
-codec:v video codec to use, most modern is libx265
# libx265 is slower but provides a smaller file size output, by default is usually
# libx264 which is the most compatible, faster than x265 but with a bigger file output
$ ffmpeg -i video.mov -codec:v libx265 video.mp4
# Simplest version
$ ffmpeg -i video.mov video.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment