Create and Fuck your AI Slut -70% OFF
x

README How to compress video collections

Nirka

Formerly 'Nirkera'
Sep 14, 2023
18
61
80
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
 

gameplayer109

Newbie
Nov 5, 2024
44
74
86
Alternatively, you can also use one of the best transcoding tool called Handbrake, it's fully free and open source. If you ever struggle regarding any setting, just ask chatgpt or any other AI chatbot to guide you through it.

This is how I transcoded some of my early works before I learned more about encoding. Surprisingly, most if not all of the configurations GPT gave me at the time still hold correct to this day now that I know much more about encoding.

A great starting point could be to encode your big H.264 videos to H.265 as it reduces the file size upto 60% without losing any noticeable quality.
 
  • Like
Reactions: Nirka