Skip to content

Instantly share code, notes, and snippets.

@OscarL
OscarL / cue_to_mp3.py
Last active July 29, 2024 00:40 — forked from bancek/cue_to_mp3.py
CUE splitter using ffmpeg (to mp3)
# Changes over the original:
#
# + Support both Python 2 & 3.
# * fixed location of bitrate parameters.
# * Fixed track duration so it does't cuts tracks short, nor starts them early
# (Margin of error for .flac source files should at most be around +/- 0.013 secs).
# + Added pre_gap support.
cue_file = 'file.cue'