Skip to content

Instantly share code, notes, and snippets.

@marcanuy
Created February 19, 2016 23:26
Show Gist options
  • Save marcanuy/86c39ba40c27763923bc to your computer and use it in GitHub Desktop.
Save marcanuy/86c39ba40c27763923bc to your computer and use it in GitHub Desktop.
Batch file conversors from videos to mp3
#!/bin/bash
for i in *.mkv
do
ffmpeg -i "$i" -ab 128k -vn "${i%mkv}mp3"
done
#!/bin/bash
for i in *.mp4
do
ffmpeg -i "$i" -ab 128k "${i%mp4}mp3"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment