Skip to content

Instantly share code, notes, and snippets.

@gitterliu
gitterliu / Files2Chapters.py
Last active May 16, 2017 04:30
Dump media filelength infomation.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Dump filelength infomation that ffmpeg can creat chapter markers with.
import sys
import subprocess
print(";FFMETADATA1")
start = 0
for i in sys.argv[1:]: