Is there an elegant way to split a file by chapter using ffmpeg?
(Edit: This tip came from https://github.com/phiresky via this issue: https://github.com/harryjackson/ffmpeg_split/issues/2) You can get chapters using: ffprobe -i fname -print_format json -show_chapters -loglevel error If I was writing this again I’d use ffprobe’s json options (Original answer follows) This is a working python script. I tested it on several videos and it worked well. Python isn’t … Read more