Yet another video patch tool to bypass Letvcloud's encode.
This cheat would not add video time, which is better than VFR(https://github.com/cnbeining/FlvPatcher ). Also quicker and use less space.
- Python 2.7
- ffmpeg, with own aac encoder(every ffmpeg should comes with this)
- ffprobe
- Enough spare space: the size of the original video plus 2 (3 if use safe mode with auto-cleaning failed) times of the audio stream.
Usage:
python audioblacker.py (-h) (-i input.mp4) (-o output.mp4) (-b 1900000) (-a 110000) (-s 1)
-h: Default: None
Help.
-i: Default: Blank
Input file.
If the file and audioblacker are not under the same path,
it is suggested to use absolute path to avoid possible failure.
-o Default: input-filename.black.mp4
Output file.
Would be in the same folder with the original file if not specified.
-b: Default: 1900000
Target bitrate.
-a: Default: 110000
Target audio bitrate.
audioblacker would calculate both of the required black time,
and choose the larger one to make sure your convert is successful.
Please notice that if your original video/audio bitrate is too small,
audioblacker would throw you an ERROR and quit.
-s: Default: 1
Use safe mode.
audioblacker would check whether the file's audio is AAC.
Disabling would save you some space and time,
if you know what you are doing.
Beining, http://www.cnbeining.com/
GNUv2 license.
-
You are not supposed to refer/mention/promote this software at any service within Chinese Mainland.
-
This method is enlightened by @七音弦樱 and @LYF.
-
Also enlightened by @StarBrilliant.
-
Test result of looooooooooooooooooooong blank aac made by ffmpeg: speed: around 4min/s, both on Vultr and my MBP
10s 467B/s 100s 466B/s 1000s 465B/s 10000s 455B/s 100000s 455B/s
0.3: Use ffmpeg's own encoder to make blank audio, save space and use less file; Fix forgot to uncomment;
0.21: Fix if some metadata included the programme would failed
0.2: Fix accuracy; Fix safemode failed; Fix codec; Fix if filename contain '.' the auto filename would failed; Change default
0.1: The very beginning