lossless-cut icon indicating copy to clipboard operation
lossless-cut copied to clipboard

Add export mode "Merge cuts + save chapters"

Open AlexValue opened this issue 1 year ago • 1 comments

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Description

Hello!

After I cut out the unnecessary parts of the video, I have a natural chapter division, but I can't export the video to simultaneously merge the fragments and remember those fragments as chapters.

If I merge fragments (after removing unnecessary parts), the chapter division is not preserved. I have to re-split the video into fragments to save the chapters.

AlexValue avatar Oct 16 '23 14:10 AlexValue

You have to check "Create chapters from merged segments (slow)", then your output will have the chapters preserved.

So the functionality is actually present. But I'd like to suggest a performance improvement because ("merge cuts" without creating chapters followed by "segments to chapters") is faster than ("merge cuts" with "Create chapters from merged segments (slow)").

The suggestion is that when "Create chapters from merged segments (slow)" is checked, the ffmetadata file should be saved without the chapters unchecked in the UI and timestamps of remaining chapters should be recalculated (moved left) accordingly. The operation performed internally should thus be equivalent to ("merge cuts" without creating chapters followed by "segments to chapters"). The output will be the same and performance will improve.

I hope I'm being clear enough. If not, I can paste example ffmpeg commands for each sequence of operations.

helix84 avatar Oct 17 '23 14:10 helix84