Skip to content

Instantly share code, notes, and snippets.

@maximebories
Created March 30, 2023 20:04
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save maximebories/91d79c0ec25fd3f990615dcf355de8eb to your computer and use it in GitHub Desktop.
Save maximebories/91d79c0ec25fd3f990615dcf355de8eb 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.

@Nour-MK
Copy link

Nour-MK commented Apr 15, 2024

note that there must not be spaces in the name of the .webm file to be converted. it causes the command to fail.

@StipJey
Copy link

StipJey commented Apr 25, 2024

Respect, bro!

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