Skip to content

Instantly share code, notes, and snippets.

@jeetparikh
Created October 28, 2016 03:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeetparikh/df896229c8a9c2db09065bb98a582fa7 to your computer and use it in GitHub Desktop.
Save jeetparikh/df896229c8a9c2db09065bb98a582fa7 to your computer and use it in GitHub Desktop.
Convert mp4 to webm - webm files are used in video tags to extend support to maximum browsers
#!/bin/bash
for f in *.mp4; do echo "$f"; avconv -i "$f" -c:a libvorbis -q:a 4 -c:v libvpx -crf 18 -b:v 2M -qmin 0 -qmax 50 -threads 6 "${f%.*}.webm"; done;
#!/bin/bash
for f in *.mp4; do echo "$f"; avconv -i "$f" -c:a libvorbis -q:a 4 -c:v libvpx -crf 18 -b:v 2M -qmin 0 -qmax 50 -threads 6 "${f%.*}.webm"; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment