Skip to content

Instantly share code, notes, and snippets.

@stevemeisner
Created May 15, 2019 01:47
Show Gist options
  • Select an option

  • Save stevemeisner/8eeaf3364c055705d218bf0e07e432d7 to your computer and use it in GitHub Desktop.

Select an option

Save stevemeisner/8eeaf3364c055705d218bf0e07e432d7 to your computer and use it in GitHub Desktop.
MOV to WEBM or MP4 with ffmpeg

Helpful one liners for creating various video formats from other sources (namely mov files).

MOV to WEBM

Found this thanks to David Walsh, and archiving it here for me (and whoever else).

ffmpeg -i trailer.mov -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis trailer.webm

MOV to MP4

This one courtesy of Peter Coles.

ffmpeg -i my-video.mov -vcodec h264 -acodec mp2 my-video.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment