Skip to content

Instantly share code, notes, and snippets.

@jvanja
Created February 18, 2018 11:55
Show Gist options
  • Save jvanja/c1e81366eeac7ad41413302173b9bae5 to your computer and use it in GitHub Desktop.
Save jvanja/c1e81366eeac7ad41413302173b9bae5 to your computer and use it in GitHub Desktop.
Convert all MP4s in current directory to WEBM using FFMPEG
#!/bin/bash
find "$PWD" -name '*.mp4' -exec sh -c 'ffmpeg -i "$0" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${0%%.mp4}.webm"' {} \;
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment