Skip to content

Instantly share code, notes, and snippets.

@grantjenks
Created October 28, 2022 05:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grantjenks/9bb0186765c9f6fce01503bb1daaa5c9 to your computer and use it in GitHub Desktop.
Save grantjenks/9bb0186765c9f6fce01503bb1daaa5c9 to your computer and use it in GitHub Desktop.
ffmpeg commands to convert video files
# Convert .m4v to .mp4
$ ffmpeg -i input.m4v -c:v libx264 -c:a aac output.mp4
# Convert .mp4 to .webm
$ ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 -b:a 128k -c:a libopus output.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment