Jump to content

How to truly compress a folder

I am having a problem with compressing a folder with old YT footage. I right click, send to and then compressed folder. It compresses but the file size is still the same (properties) Does anyone know how to compress the folder to shrink the size properly? 

Link to comment
Share on other sites

Link to post
Share on other sites

filesize or size on disk?

 

those are very different things ;)

EDIT: video is also really bad at being compressed, dont expect huge differences in size here.

Link to comment
Share on other sites

Link to post
Share on other sites

afaik only solution is for you to change video properties (bitrate, fps, etc)

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

5 minutes ago, manikyath said:

filesize or size on disk?

 

those are very different things ;)

EDIT: video is also really bad at being compressed, dont expect huge differences in size here.

Whats the difference between file size and on disk?

Link to comment
Share on other sites

Link to post
Share on other sites

7 minutes ago, Vatablous said:

I am having a problem with compressing a folder with old YT footage. I right click, send to and then compressed folder. It compresses but the file size is still the same (properties) Does anyone know how to compress the folder to shrink the size properly? 

Zip folders are what we call "Lossless compression". That means that when you compress the file to save space, when you extract it, it is extracted perfectly into the same state it originally was in.

 

Video is basically impossible to losslessly compress.

 

Furthermore, YT video is already compressed to some degree.

 

If you want to save space with old YT footage, you need to transcode them into a file with a lower bitrate. You could try a more efficient codec, such as H.265.

 

Ideally, if you want to keep that YT video, you should create an archive drive of some sort, that you move your videos to after you no longer need them.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Vatablous said:

Whats the difference between file size and on disk?

filesize is the amount of bytes the file is big. (for example, a 1000 character TXT file would be 1000 bytes)

size on disk would be the actual amount of space taken up on disk, which is affected by the size of the file, compression, the file's name, and the specific formatting settings of your storage solution. in before mentioned example, that text file would most likely be 4KB on disk, because thats the smallest space it would be able to allocate on disk.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, manikyath said:

filesize is the amount of bytes the file is big. (for example, a 1000 character TXT file would be 1000 bytes)

size on disk would be the actual amount of space taken up on disk, which is affected by the size of the file, compression, the file's name, and the specific formatting settings of your storage solution. in before mentioned example, that text file would most likely be 4KB on disk, because thats the smallest space it would be able to allocate on disk.

So size on disk is more accurate? 

Link to comment
Share on other sites

Link to post
Share on other sites

15 minutes ago, Vatablous said:

I am having a problem with compressing a folder with old YT footage. I right click, send to and then compressed folder. It compresses but the file size is still the same (properties) Does anyone know how to compress the folder to shrink the size properly? 

It's not going to work.  Lossless compression like ZIP or RAR or anything like that work by compressing redundant data patterns.  Lossy compressed media like JPEGs, MP3s, or H.264, HEVC or other video all have already removed as much redundant information as part of the very design of their formats.  As a result of this, your Zip or RAR program manages negligible compression since there is next to nothing to compress.  In some rare cases, you can even have resulting files that are LARGER than the files inside them due tot he overhead of the compression scheme at all.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Vatablous said:

So size on disk is more accurate? 

Hard Drives are made up of things called sectors. A sector has a specific capacity (Eg: 4KB, or 512B). A sector can only have one piece of data inside it. So if you have a single 10B file, it still takes up an entire sector. Larger files can be spanned across multiple sectors, but a single sector can only one one file (or part of a file).

 

Size on disk is accurate to the sense that this is how much space it's taking up on your HDD. It's not accurate in the sense that if you copy that file into Memory (RAM) or another HDD/SSD, etc, it may (or may not) take up a different amount for "size on disk".

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

16 minutes ago, Vatablous said:

I am having a problem with compressing a folder with old YT footage. I right click, send to and then compressed folder. It compresses but the file size is still the same (properties) Does anyone know how to compress the folder to shrink the size properly? 

Most likely because the video is already compressed as is. It's hard to compress something even further if it's already compressed.

 

Think of it this way, let's say you put some fluffy comforters in a vacuum bag. It compresses it quite a bit. But now try getting that to compress even further.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Vatablous said:

So size on disk is more accurate? 

size on disk is what matters in terms of storage space usage, filesize is what matters in terms of "how much data does this file contain"

 

its not about accuracy as much as it is about what is more useful in which situation. if you'd for example want to read a text file into a script, filesize would indicate the amount of expected characters, and if you'd want to calculate how much free space you have, size on disk is what actually tells you how much space is being used.

 

an example where these two values create very weird scenarios is for example when space is allocated for big files to be downloaded, or in the opposite, where this one intense smartass i found replaced an 8GB file by one that was 1KB big, but had a "filesize" of 8GB so it was properly recognised by the software that read it out. said software was just reading out zeroes, but at least it wasnt complaining the file wasnt there :P

Link to comment
Share on other sites

Link to post
Share on other sites

13 minutes ago, Vatablous said:

Whats the difference between file size and on disk?

File size is the actual data in the file, size on disk is how much it's taking up to store it, which will generally be the file size rounded up to the next 4 kB interval, but if you enable compression, it could be less.  Lossy video however is already very "Dense" and so you are unlikely to see any benefit from compression.  It works best on many small files, due to the rounding I mentioned, and/or on files that compress well, like exes, other uncompressed formats like bmp, etc.

Solve your own audio issues  |  First Steps with RPi 3  |  Humidity & Condensation  |  Sleep & Hibernation  |  Overclocking RAM  |  Making Backups  |  Displays  |  4K / 8K / 16K / etc.  |  Do I need 80+ Platinum?

If you can read this you're using the wrong theme.  You can change it at the bottom.

Link to comment
Share on other sites

Link to post
Share on other sites

2 hours ago, Vatablous said:

I am having a problem with compressing a folder with old YT footage. I right click, send to and then compressed folder. It compresses but the file size is still the same (properties) Does anyone know how to compress the folder to shrink the size properly? 

Hydraulic press

Link to comment
Share on other sites

Link to post
Share on other sites

18 hours ago, Shadow_Storm56 said:

Hydraulic press

Think of the Hydraulic Press, in this scenario, as Handbrake.

 

You can make already-compressed-video smaller, but you "destroy" it a bit in the process (you lose quality), that you'll never get back.

 

The Press can make the vacuum sealed bag smaller, but it'll probably tear some threads or a bit of plastic in the process.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

9 hours ago, dalekphalm said:

Think of the Hydraulic Press, in this scenario, as Handbrake.

 

You can make already-compressed-video smaller, but you "destroy" it a bit in the process (you lose quality), that you'll never get back.

 

The Press can make the vacuum sealed bag smaller, but it'll probably tear some threads or a bit of plastic in the process.

I was making a joke but actually a physical press is a good metaphor. It makes it smaller but at a point starts making damage. Eventually distroying the object... a file in this case. 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×