Hi there, came across your tool while looking for a way to automate scene detection with ffmpeg to insert chapter markers and it's definitely a lot cleaner than manually using a script to convert the pts_time to seconds etc., so thank you!
Although I don't quite get how the chapter length option works - the output log uses the phrase "Keep only scenes within chapter length", but if a chapter was longer than the length does that mean it'd be split into more chapters, each of which is no longer than length? or does it mean that chapters longer than length are 'ignored', and I guess combined into one even longer one?
Or perhaps it could mean the opposite, where 'scenes' must be at least 5 minutes long to be treated as chapters, in which case the scene markers would be ignored until you find a marker that's at least 5 minutes since the last chapter started. With this interpretation I'd assume I could use a lower number to get more chapters, since more frequent scene changes would still generate chapter markers.
However if I run ffchapters2 on a specific video, it outputs
then with various length options:
-l 5 ScenesSelected count: 7
-l 1 ScenesSelected count: 1
-l 15 ScenesSelected count: 3
So I don't really understand why a chapter length of 5 would give the most chapters? Any insight would be great!
Edit: I just tried passing 0 as the chapter length and got the 'Chapter average length selection' interactive prompt (very cool!) though it has made me even more confused... does it now prefer chapters of this length even if there are more/fewer markers?