-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Description
Let's give an example: below are 9 files, right?
-
But obviously, they are actually 3 video files.
-
Therefore, we expect them to be merged into 3 separate files.
see here imageScreenshotLiveDemo -
Obviously, this is achieved according to specific rules/rules/ordering, and the most important thing is the law of file names.
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.
-
RegExp:
.+_\d{4}\.\w+$
https://regex101.com/r/qho3jS/latest -
Obviously they all contain
_\d{4}\.\w+$
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.
- adding the merged UI interface,
By default, it automatically recognizes the group information that will be intelligently merged. image
Add an option, users can choose smart batch merge, or merge into 1 file.
If possible, users can also add file name rules (such asRegExp
) to realize batch merging. (when the program cannot recognize it)