harryjackson / ffmpeg_split

Split an ffmpeg file by chapter
Apache License 2.0
55 stars 20 forks source link

More files are created #8

Open glu8716 opened 1 year ago

glu8716 commented 1 year ago

First of all thanks for the script, it works fine. However it seems that the script doesn't stop at the last chapter and it keeps splitting it multiple times by recognizing other streams as chapters:

/home/lorenzo/Videos/A1_t00/1 - Chapter 01.mkv
start:2788.786000
/home/lorenzo/Videos/A1_t00/2 - Chapter 02.mkv
start:4908.870633
/home/lorenzo/Videos/A1_t00/3 - Chapter 03.mkv
start:7253.112533
/home/lorenzo/Videos/A1_t00/4 - Chapter 04.mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/5 - Chapter 05.mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/6 - Surround 5.1.mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/7 - dvd_subtitle 720x480 (default).mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/8 - dvd_subtitle 720x480.mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/9 - dvd_subtitle 720x480.mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/10 - dvd_subtitle 720x480.mkv
start:9681.238233
/home/lorenzo/Videos/A1_t00/11 - dvd_subtitle 720x480.mkv
start:0.000000

As a result, instead of having only the first 5 files based on the real chapters I also get the other 6 files which are a duplicate of the chapter 5.

harryjackson commented 5 months ago

Steps to reproduce including the file it was run on please.