Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Bash script to convert all mp4 videos in current directory to webm format (saves space!)
- function transcode {
- echo "Transcode Running…";
- ffmpeg -i "$i" -qmin 10 -qmax 42 -threads 4 -quality good -vcodec libvpx "$newname";
- }
- for i in *.mp4
- do
- newname=$(echo $i|sed 's/mp4/webm/g');
- echo "Converting "$i" to webm format.";
- echo "Please wait -- ";
- transcode;
- echo $i" was converted successfully to "$newname;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement