1
0
Very easily convert any flacs from an input directory into ogg vorbis in an output directory. Will recursively search through directory, mirroring the structure in the output directory.
This repository has been archived on 2023-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
2013-05-21 21:47:50 -07:00
.gitignore Initial commit, not quite functional yet 2013-05-17 22:18:24 -07:00
audio-shrink.py Added a new transcoding method (oggenc) 2013-05-21 21:47:34 -07:00
LICENSE Licensed under Apache 2.0 2013-05-20 19:51:23 -06:00
README.md Update README.md 2013-05-20 20:04:37 -06:00

Audio-Shrinker

After a bit of reasearch I have determined that OGG Vorbis is the best format to use for audio on mobile devices. It has excellent compression with great quality even at lower bit rates. To simplify the process of comverting my music, this small app will take an input directory and convert the contained audio files using mmpeg.

Installation

# Install some dependencies
sudo apt-get install build-essential vorbis-tools git autoconf automake libvorbis-dev
 
# If ffmpeg is installed, remove it
sudo apt-get remove ffmpeg
 
# Now install the new version
cd /opt
sudo git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
sudo ./configure --enable-libvorbis
sudo make
sudo make install

Detailed installation instructions can be found in this blog post.

Usage

A simple help command is included:

python audio-shrink.py -h

To convert a directory of files:

python audio-shrink.py -i <input dir> -o <output dir> -f <input format>

The input directory structure will be mirrored in the output directory. For example, album folders will be created if you point the script at an artist folder.