Skip to content

Command line script that transcodes from flac and other formats to mp3.

Notifications You must be signed in to change notification settings

markdoliner/transcode_to_mp3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Overview

A simple command line python script that transcodes a list of files from a few different audio encodings to mp3. Useful when you have FLAC files that you want to play in Apple Music or anything else that doesn't support FLAC.

Files are written to the local directory in a file hierarchy that mirrors the source file hierarchy.

Currently supports transcoding from FLAC, ogg, and m4a. Any mp3 files in the list of files will be copied verbatim.

Runs multiple threads for decoding/encoding, to take advantage of computers with multiple CPUs and/or multiple cores.

Available at https://github.com/markdoliner/transcode_to_mp3

Requirements

Usage

The script was developed on Linux. It might work on other Unixy operating systems such as OS X and possibly even Microsoft Windows. Especially if subprocess.PIPE is supported.

The first argument should be the top level base directory where your music files live. All subsequent arguments should be files or directories underneath the top directory.

Example:

> mkdir music_for_my_ipod
> cd music_for_my_ipod
> transcode_to_mp3 /mnt/music /mnt/music/Bananarama\ -\ Cruel\ Summer.flac /mnt/music/Hooverphonic/

This runs for a bit, copying files and transcoding as necessary, and eventually results in a directory hierarchy that looks like this:

./music_for_my_ipod/Bananarama - Cruel Summer.mp3
./music_for_my_ipod/Hooverphonic/The Magnificent Tree/01 Autoharp.mp3
./music_for_my_ipod/Hooverphonic/The Magnificent Tree/02 Mad About You.mp3
...
./music_for_my_ipod/Hooverphonic/The Magnificent Tree/11 L'odeur Animale.mp3

About

Command line script that transcodes from flac and other formats to mp3.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages