Skip to content

Instantly share code, notes, and snippets.

@mrunkel
Created March 5, 2018 14:36
Show Gist options
  • Save mrunkel/e11fd55d5ca5bc595ab9bea6eaadd34c to your computer and use it in GitHub Desktop.
Save mrunkel/e11fd55d5ca5bc595ab9bea6eaadd34c to your computer and use it in GitHub Desktop.
dewebm script
#!/bin/sh
shopt -s nullglob
for f in *.webm
do
file=$(basename "$f")
ext="${file##*.}"
name="${file%.*}"
echo "Converting $file to mpeg4"
ffmpeg -hide_banner -v error -i "$file" "${name}.mp4" && rm $f
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment