CREATE and FUCK your own AI GIRLFRIEND TRY FOR FREE
x

README How to compress video collections

simiriti

New Member
Nov 6, 2023
2
1
To compress video collections, use video compression software like Handbrake or Adobe Media Encoder . These tools allow you to reduce file sizes while maintaining quality. First, select the desired video files. Then, choose a compression preset that balances quality and size reduction. Custom settings like resolution, bit rate, and codec (H.264, HEVC) are also available for fine-tuning. After configuring settings, start the compression process. Remember, more compression might lead to quality loss. Always backup originals before compressing!
 
  • Like
Reactions: NullZeb

sandz

New Member
Jul 3, 2017
5
3
I've been using this masterpiece for a while (thank you so much rf96!) and today I had a strange error. Apparently the frames are too large for it to convert. Is there any way to fix this?
View attachment 2928708
Also getting this error when trying the script on a 4k file. Has anyone figured out how to get past this?


EDIT: For whatever reason I don't see the error when I try running the command directly with ffmpeg, so just used a batch script to process my files in a flat directory to keep it simple.
 
Last edited:

Shakezoola

Newbie
Apr 4, 2024
95
327
Im no pro at this sort of stuff and I assume there's a lot I don't know, but AFAIK it's muuuch better to compress using AV1 since, aside from the follow-up to H265 (who's name I forget, but know that no one uses yet), it's the best compression available. It saves the most space.
 

hlarious

Newbie
Jun 4, 2022
78
276
Im no pro at this sort of stuff and I assume there's a lot I don't know, but AFAIK it's muuuch better to compress using AV1 since, aside from the follow-up to H265 (who's name I forget, but know that no one uses yet), it's the best compression available. It saves the most space.
You get better compression, but it takes even longer than H.265 to encode, which already takes a pretty long time. It is not really worth it for most people. Some devices/media players also don't support AV1 (my phone heats up when decoding AV1, lol)

You can use AV1 now but it is still many years away from widespread adoption because technology is yet to catch up.
 

Calendar

Newbie
Jun 18, 2020
20
29
Yeah, AV1 is the best compression yet. But the thing with encoding is that is not the only factor you care. Even for h265 unless you have great machine or a dedicated one, there is no way with actual proper settings you gonna encode your collections comfortably.
 

Shakezoola

Newbie
Apr 4, 2024
95
327
You get better compression, but it takes even longer than H.265 to encode, which already takes a pretty long time. It is not really worth it for most people. Some devices/media players also don't support AV1 (my phone heats up when decoding AV1, lol)

You can use AV1 now but it is still many years away from widespread adoption because technology is yet to catch up.
Actually I'd argue that the hardware to encode in AV1 is definitely there. Theres 12 encoder presets in Handbrake, with 6 the recommended setting. But you can go lower. If you go to 1 or 2 you're taking days to encode. I use 3 and 4. Which is real low, but I can still do something that's 30 minutes long in an hour. Maybe hour and a half depending on the complexity of the material.

And, again, that's on a low preset. Realistically I can encode 30 minute stuff in 20 minutes.

And that's not to brag, just saying that there's definitely CPU's that can handle it now. The followup to H265 (VAVC? VAC?), from what I hear, takes so long that no PC can reasonably do anything atm with it.
 

ivanov95

Member
Oct 23, 2017
403
522
H.266 (VVC - Versalite Video Encoding) is the follow up to H.265, but it will take years before it's usable.

"H.266 is more efficient at compressing video files and offers better video quality at the same bit rate compared to H. 265. It also uses more complex algorithms and techniques compared to H.265."
 

Dezdrehel

Newbie
Jul 13, 2019
23
30
Hi there,
I'm trying to set up WinFF on my Windows computer using the download link in the first post.
I get a .zip file containing a winFF master folder with winFF and FFmpeg stuff, but no Windows executables except the 3.exe for FFmpeg.
I've read the readme files and they tells me to download and install two Pascal frameworks (fpc 2.4.4 and lazarus 0.9.30) to compile the Windows executable.
I was wondering if there was an easier way to get winFF to work?

Thanks for your attention.
 

rf96

I rape lolis with my tentacles
Uploader
Donor
Aug 11, 2017
10,201
81,061
Hi there,
I'm trying to set up WinFF on my Windows computer using the download link in the first post.
I get a .zip file containing a winFF master folder with winFF and FFmpeg stuff, but no Windows executables except the 3.exe for FFmpeg.
I've read the readme files and they tells me to download and install two Pascal frameworks (fpc 2.4.4 and lazarus 0.9.30) to compile the Windows executable.
I was wondering if there was an easier way to get winFF to work?

Thanks for your attention.
 

sandz

New Member
Jul 3, 2017
5
3
Out of curiosity, is the original ffmpeg command mentioned in the OP still what people are using? Anyone tweak it and see any benefit?
-crf 20.0 -vcodec libx264 -filter:v scale=-2:720 -preset slow -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
 

Dk2014

Newbie
Oct 18, 2018
38
183
For someone who want use h265/x265 encoder, better try medium or faster presets, encode fps speed between medium and slow was huge
For my 7800x3d, RF20 and medium have an average fps of 68
1721206635053.png

ref:
 
  • Like
Reactions: TREXrg

mikiacg

New Member
May 17, 2024
1
0
I recommend the software HandBrake for video compression; it’s user-friendly and supports hardware acceleration along with various format options.
 

mehdiq@g

New Member
Oct 1, 2024
10
1
Some animation collections can be huge, sometimes well above 50Gb. If you don't need 8K 60FPS 50K bitrate videos to fap, you can compress your collections by following these instructions.

1. First of all, remove all the developer's files, such as .blend, or video timelapses, etc. Artists often add work in progress files and you may want to remove these as well. You only want to keep the animations [unless the artist also makes pictures!, in which case compress these files following the tutorial for compressing pictures].
Use the search function (ctrl+F) and type the extensions of the files you want to remove (eg. ".blend"). The collection could be much lighter after this.


2. For the compression use the freeware , a visual interface for FFmpeg:


3. You need to configure the preset:
a. go to "edit", then "presets".
View attachment 2459977

b. Select "MPEG-4" in the first list, then "MPEG-4 720p" in the second list.

c. Paste this code in the Preset command line parameters:
Code:
-crf 20.0 -vcodec libx264 -filter:v scale=-2:720 -preset slow -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
d. First click on "add / update", then "save".
View attachment 2459978

e. In the "Output details" tab, select the preset "MPEG-4" and "MPEG-4 720p".
In "Output folder", select "Use source folder" (note: you can select another folder, but then you will lose the original folder structure. If you select another folder, you can disregard the part about the underscores).

View attachment 2459979


3. Then you need to prepare the files. If all the video files are in one folder with no subfolder, skip to 4. Otherwise, if the videos are spread over many subfolders, you need to do this:
- Use the search function (ctrl+F), and type a dot: ".", it will list all the files in the folder, including subfolders. If there are many pictures, you can search by extension, eg. ".mp4", and it will only list video files (note: some artists use unusual video formats, such as .avi, .wmv, .flv, etc., you may need to search for them too).
- Select all the video files you want to compress. You can sort by extension.
- *In case you have underscores in the file names*: you need to remove them. On Linux it's easy, but not on Windows. The easiest way I have found is to use a command line: hold shift and right click in your main folder, "open powershell window here", then paste:
Code:
get-childitem *.mp4 -Recurse | foreach {rename-item $_ $_.name.replace("_"," ")}
It will replace your underscores with spaces.

Once you have selected all the files you want to convert, skip to 4.


4. Drag and drop all the selected files to WinFF. Important: do not navigate away from your window with the original files, nor deselect them!

Then select "Convert". It will open another window summarising the tasks. Click "run".
Another window will open. A line in blue will appear once the conversion is done. It can be long.


5. Once the conversion is done, return to your window with the original files. Press "delete".

Run the Powershell once more and paste this code (this is because WinFF adds a o_ prefix to all the new files that shares the same name with the original ones):
Code:
get-childitem *.mp4 -Recurse | foreach {rename-item $_ $_.name.replace("o_","")}
Tadam, your big original files should have been replaced by the compressed files by now, with the original folder structure preserved.


The current preset should save about 80% space for files in 1080p with a 10K bitrate, and up to 99% for some monster 4K files!

Feel free to experiment with the FFmpeg code.
very good nice
 

sexxibatman

New Member
Oct 16, 2024
3
4
Just use freeware Avidemux. For Win and Linux. Has lot of useful presets and ability to modify audio, cut frames or fragments. Reorganize or add effects ... even reduce kbs because I see a lot of idiots uploading their short (few seconds) vids with 10000 kbs!
Anything above 900 gives little effect to edge sharpness
Take a look that most videoclips are 1200-2500kbs. nobody needs more to preserve sharpness and saturated colors.

and please use x264 - it gives best picture
x265 is f*** DLSS upscaling and produces blurred edges and smoothes colors . In scenes where you have tiny mesh, mist, fog, net - it fails. Produces more cartoonish visuals. Gives much smaller file size because of less data to process.
 
Last edited:

The_Marika_Simp

Formerly 'HasX3rd'
Oct 18, 2024
8
6
I...don't think I missed anything from the guide but files starting with o in it's names showed up in the same folder where I have my vids. they're 0 bytes though, and I deleted the original like mentioned and did the powershell one. the o files become the same file name but still retains 0 bytes...

any help? and is the details in video, audio tab supposed to be blank?

Update:
[NULL @ 048d1b20] Unable to find a suitable output format for '20.0'
20.0: Invalid argument

I got this error...
 
Last edited: