Skip to content

Instantly share code, notes, and snippets.

@verityj
verityj / mergechapters.py
Last active May 28, 2023 15:06 — forked from cliss/mergechapters.py
Merge Files with Chapters
# This script creates metadata and file list for unchapterized files.
#
# Usage: python3 <script>.py input.files
#
# Example:
# python3 <script>.py *.mp3
#
# Command used (to get duration in (s)):
# ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 input
#