Convert flac files to ogg

By DJ Cannon (AKA Nik) | April 24, 2017

I almost exclusively use the ogg file format for my music. Here’s a script I use to convert flac files to ogg:

find . -name "*.flac" |

while read filename


    artist_name=`metaflac --show-tag=artist "$filename" | cut -d \= -f 2`

    song_name=`metaflac --show-tag=title "$filename" | cut -d \= -f 2`

    oggenc -q 9 -o "$artist_name - $song_name.ogg" "$filename"


comments powered by Disqus