ffmpeg_split
ffmpeg_split copied to clipboard
the `-e` in the README doesn't exist in the current version
Usage: split_ffmpeg.py [options] [FILE]...
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-f, --force Force overwrite
-d DIR, --dir=DIR Output directory
the -e in the README doesn't exist in the current version
I wanted to reencode too because splitting the videos in between keyframes without reencoding causes a few seconds of blank video at the beginning of each segment.
In the convertChapters function I just changed
'-vcodec', 'copy',
to
'-c:v', 'libx264'
It's a hack, but I didn't want to mess with figuring out how that OptionParser is supposed to work.