Skip to content

Instantly share code, notes, and snippets.

@showerbeer
showerbeer / convert.py
Created October 12, 2018 10:59
Python 3 script for using ffmpeg to split mp3 files on chapters (from metadata)
import os
import re
import pprint
import sys
from os.path import basename
from optparse import OptionParser
from subprocess import (
check_output,
STDOUT,
CalledProcessError