Skip to content

Instantly share code, notes, and snippets.

@Naouak
Created January 10, 2012 22:40
Show Gist options
  • Save Naouak/1591654 to your computer and use it in GitHub Desktop.
Save Naouak/1591654 to your computer and use it in GitHub Desktop.
flac to mp3
#!/bin/bash
mkdir output
for file in *.mkv; do
ffmpeg -i "$file" -vcodec copy -acodec libmp3lame -sameq "output/$file"
done
@jmbeach
Copy link

jmbeach commented Feb 10, 2017

slight changes:

mkdir output

for file in *.flac; do

ffmpeg -i "$file" "output/${file/.flac}.mp3"

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment