- Merge flv fragment videos with repacking as mp4 using FFmpeg.
- Automatically remove the original fragment videos and some interim files.
- A sorted original fragment videos' filelist will be left.
bash
,ffmpeg
,parallel
are required.- Only compatible with flv videos which are encoded by H.264.
- Designed specifically for macOS App Bilibili for Mac. It may be not compatible with other filename formats.
- Put your flv fragment videos in
[some_directory]
. - Change your Teriminal's current directory to
[some_directory]
. - Run the script.
- When
Merge Mode: (1: Single-Pack; 2: Multi-Pack):
Diasplayed, please entermerge_mode
as tutorial
WhenOriginalFileKeep (Y/N):
Displayed, please enterfile_mode
as tutorial
-
For
Merge Mode
:- 1 - Single-Pack Mode (Vidoes will be merged all in one.)
- 2 - Multi-Pack Mode (Videos will be merged by different Parts.)
-
For
File Mode
:- Y - File-Keeping Mode (The original downloads will be keeped.)
- V - Verbose Mode (In addition to keep original downloads, it keeps some interim filelist as logs.)
- N & Others - Don't Keep Original Files (The original downloads will not be keeped.)
- Other
.txt, .flv, .mp4
files in the script-running folder may be deleted unintenedly.