Skip to content

Instantly share code, notes, and snippets.

@nobiki
Last active February 26, 2020 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobiki/2867df1f6248e131ae04923319e380a2 to your computer and use it in GitHub Desktop.
Save nobiki/2867df1f6248e131ae04923319e380a2 to your computer and use it in GitHub Desktop.
#!/bin/bash -eu
cd $(dirname `realpath $0`)
ls ./*.mp4 | sed -e s/\.mp4//g | xargs -IMP4 ffmpeg -i MP4.mp4 -strict -2 MP4.webm
#ls ./*.mp4 | sed -e s/\.mp4//g | xargs -IMP4 ffmpeg -i MP4.mp4 -strict -2 -vcodec vp9 -acodec opus MP4.webm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment