Create your AI Cum Slut for Valentine’s Day 60% OFF Now
x

README How to compress video collections

Nikotinaka

New Member
Sep 14, 2023
13
45
I made changes to the parameter, so that it results in a mp4 with unnoticed loss of quality and without changing height x width.

Code:
-crf 18.0 -vcodec libx264 -preset veryslow -acodec aac -ar 48000 -b:a 128k -coder 1 -flags +loop -cmp chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0
Result:
input: 14,5 MB (15.294.464 bytes) Gif - 960 x 1200
output: 1.21 MB (1.273.856 bytes) MP4 - 960 x 1200


Now if you don't mind the height and width being modified and want at least a 1080p size:

Code:
-crf 18.0 -vcodec libx264 -filter:v scale=-2:1080 -preset veryslow -acodec aac -ar 48000 -b:a 128k -coder 1 -flags +loop -cmp chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0
Result:
input: 14,5 MB (15.294.464 bytes) Gif - 960 x 1200
output: 0.472 KB (483.328 bytes) MP4 - 864 x 1072