Trey Hunner

I help developers level-up their Python skills

Hire Me For Training

Flac to Ogg Converter

| Comments

Originally posted on my old blog.

Over the summer I updated Loran Hughes’ mp3ogg shell script to make version 2.0.6. The script converts mp3 files to ogg files while preserving the ID3 tags. The script currently has the capability to convert a whole directory or just one file.

Yesterday I found Jason Buberel’s perl script that uses a Linux emulator to convert flac files to ogg files. I converted the script to a Linux version which was very easy since it used a Linux emulator before. Version 1.0.0 can convert a whole directory that must be specified as a variable. No tags are dealt with currently and the script currently works similarly to mp3ogg. mp3ogg converts the mp3 files to wavs and then to ogg files whereas flacogg converts the flac files directly to oggs. The quality of the files converted with flacogg must be changed with a variable. I am trying to keep the code looking consistent in flacogg by using Allman style indentations.

Download flacogg

Comments

✕
↑
Write more Pythonic code

Need to fill-in gaps in your Python skills? I send regular emails designed to do just that.