Skip to content

Instantly share code, notes, and snippets.

@extratone
Forked from maximebories/convert.md
Created September 29, 2023 23:34
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 extratone/bbe28978260b7d3359ab7e8cd75e09b3 to your computer and use it in GitHub Desktop.
Save extratone/bbe28978260b7d3359ab7e8cd75e09b3 to your computer and use it in GitHub Desktop.
FFmpeg command to convert webm to mp4 video files
ffmpeg -i input.webm -c:v libx264 -preset slow -crf 22 -c:a aac -b:a 128k output.mp4

This ffmpeg command converts a .webm video file to a standard .mp4 file using the libx264 codec for video, aac codec for audio, and a CRF value of 22. The preset is set to 'slow' for higher quality encoding, and the audio bitrate is set to 128 kbps.

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