Skip to content

Instantly share code, notes, and snippets.

@davidraedev
Created September 29, 2017 23:40
Show Gist options
  • Save davidraedev/83a38bea35fe0e72dbd479317375f81b to your computer and use it in GitHub Desktop.
Save davidraedev/83a38bea35fe0e72dbd479317375f81b to your computer and use it in GitHub Desktop.
quick and dirty mp3 conversion with ffmpeg, multithreadable
#!/bin/bash
OUT='mp3/';
for FILE in *.mp4; do
if [ ! -f "$OUT$FILE".mp3 ]; then
ffmpeg -n -i "$FILE" -codec:a libmp3lame -qscale:a 0 "$OUT$FILE".mp3;
fi;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment