mifi / lossless-cut

The swiss army knife of lossless video/audio editing
https://losslesscut.app/
GNU General Public License v2.0
25.99k stars 1.25k forks source link

Smart batch/multiple Merge "groups" of files #812

Open dnknn opened 3 years ago

dnknn commented 3 years ago

Let's give an example: below are 9 files, right?

aaa file name aaa_0001.mp4       (10MB)
aaa file name aaa_0002.mp4       (15MB)
bbb filexxxx bbb_0001.mp4       (20MB)
bbb filexxxx bbb_0002.mp4       (20MB)
bbb filexxxx bbb_0003.mp4       (10MB)
xxxxxx file name xxxxxx_0001.mp4       (10MB)
xxxxxx file name xxxxxx_0002.mp4       (10MB)
xxxxxx file name xxxxxx_0003.mp4       (10MB)
xxxxxx file name xxxxxx_0004.mp4       (10MB)

.....more......
.....more......

Because of this regular naming method, it is very common in FLV segmented video streams.


Current merge behavior: 👎 Merge all (1 file)

aaa file name aaa_0001-merged.mp4   (115MB)

Expected merge behavior: 👍 Merged into 3 files separately

Smart merge according to the file name rule

aaa file name aaa-merged.mp4       (25MB)
bbb filexxxx bbb-merged.mp4       (50MB)
xxxxxx file name xxxxxx-merged.mp4       (40MB)

Of course, we can customize whether to automatically add the -merged suffix string.


mifi commented 3 years ago

I understand you want this feature because you need to merge hundreds or thousands of "groups" of files, right? I'm not sure how many people need this feature but we can leave it open to see.

mifi commented 2 years ago

Someone else just requested this also, so you’re not alone. (With .ts files):

I was wondering if there is a way to setup a batch of merges from a folder. Essentially, I have a folder that is like

movie001.ts
movie001_2.ts

movie002.ts
movie002_2.ts
movie002_3.ts

Except like 100s of such pairs / three parts or more. Instead of doing them one at a time in Lossless Cut, a way to set them all up to work one at a time.

75th commented 2 years ago

I have a different take on this request. Say you're looking at clips from a Nintendo Switch. The Switch will capture the last 30 seconds of gameplay when you tell it to; but if you tell it to capture again 15 seconds later, the second clip will only be 15 seconds long.

So in my version of this feature request, I should be able to add a bunch of clips as a batch operation, and when LLC sees that most are 30 seconds but some are less, it should automatically concatenate the short ones to the ones immediately preceding, based on either file modification date or by detecting the date in the filename.

This same principle applies to NVIDIA Overlay and other DVR-type things, which have configurable capture durations (NVIDIA defaults to five minutes, but I have it set to 90 seconds), so the time should either be detected per batch operation, or manuallly configurable.

I just discovered this app today and am thrilled with it. Keep up the good work!

SignpostMarv commented 1 year ago

I understand you want this feature because you need to merge hundreds or thousands of "groups" of files, right? I'm not sure how many people need this feature but we can leave it open to see.

The workflow I have with LosslessCut typically has me creating longer segments to remove the bits in between in YouTube Studio because that's less disruptive than having to open the longer exports in LosslessCut and do the merge/splitting offline.

The downside is sometimes YouTube Studio can take hours to do this, would prefer a nested UI for the segments to automatically set "merge all the cuts under here with the name matching the parent"