Created
October 28, 2016 03:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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