Closed iconoclasthero closed 6 months ago
I found, and used, this script today (thank-you kindly, @harryjackson, this works beautifully!)
It errored for me when I used a command line similar to yours, @iconoclasthero.
When I ran it with python 2 and the -f command line option, all good. I also had minor dramas with the dir it wrote output to. prefix the filename with a path helped. (ubuntu 20.04, python 2.7.18)
bad examples:
python3 split_ffmpeg.py myfile.mp4
- nope (errors)
python2 split_ffmpeg.py myfile.mp4
- nope (errors similar to yours, I think, didn't make a note)
python2 split_ffmpeg.py -f myfile.mp4
- nope - write error, can't access /myfile dir
working example:
python2 split_ffmpeg.py -f ./myfile.mp4
- yes - works nicely
I also tweaked lines 87-92 to change the ffmpeg command line to add some encoding, but I think that's unrelated to issues you're having / I had.
for interest, my workflow:
chapters
-> create chapter markers
enabled (windows)split_ffmpeg.py
- to split the m4v files to individual chapters (on linux, my go to wherever possible, I didn't try this script on windows but it'll probably work fine if dependencies are all OK)hth,
G
It would definitely help if you included the command syntax so maybe the problem is that I had to guess...maybe it is a dependency issue?