Jump to content

hi everyone.

 

 

i am just wondering what type of file compression fits to compress large files (1-2gb's) each to a somehow smaller size. in 7zip or winrar etc, as far as i know about it, its loss-less eh its just math kinda with numbers... *cough*

 

 

what settings in 7zip should i be using? any tips? i tried to compress files but its like 1-2mb's smaller and im like "what.."

 

so help a little new user out (with compression) other than converting to smaller size/loosing quality... or better said, help me to optimize archiving! 

 

 

^_^

┏(◑̃.◑̃)┛ Totally Not Dangerous ┏(◐̃.◐̃)┛

i7 4790K / 16GB RAM \ 250GB SSD

 

 

Link to comment
https://linustechtips.com/topic/516187-file-compression/
Share on other sites

Link to post
Share on other sites

It depends on what type of files you're compressing. Every different type of file compresses differently.

 

In some cases, you can compress a file to 1/4th of its size. Rare, but I've seen it. In other cases, you can only lower it by a MB or two. In other cases, you can actually make the file size larger.

"Epic Voice, Quality Content"

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6864740
Share on other sites

Link to post
Share on other sites

hi everyone.

 

 

i am just wondering what type of file compression fits to compress large files (1-2gb's) each to a somehow smaller size. in 7zip or winrar etc, as far as i know about it, its loss-less eh its just math kinda with numbers... *cough*

 

 

what settings in 7zip should i be using? any tips? i tried to compress files but its like 1-2mb's smaller and im like "what.."

 

so help a little new user out (with compression) other than converting to smaller size/loosing quality... or better said, help me to optimize archiving! 

 

 

happy.png

 

If it's something like a video file (particularly h264) or a .zip file you are compressing, you won't see much difference at all - because it's already compressed. 7zip has performed optimally for me when compressing word documents, pictures (such as jpegs and bitmaps) and audio files.

 

Linus did a techquickie on compression at some point...

Speedtests

WiFi - 7ms, 22Mb down, 10Mb up

Ethernet - 6ms, 47.5Mb down, 9.7Mb up

 

Rigs

Spoiler

 Type            Desktop

 OS              Windows 10 Pro

 CPU             i5-4430S

 RAM             8GB CORSAIR XMS3 (2x4gb)

 Cooler          LC Power LC-CC-97 65W

 Motherboard     ASUS H81M-PLUS

 GPU             GeForce GTX 1060

 Storage         120GB Sandisk SSD (boot), 750GB Seagate 2.5" (storage), 500GB Seagate 2.5" SSHD (cache)

 

Spoiler

Type            Server

OS              Ubuntu 14.04 LTS

CPU             Core 2 Duo E6320

RAM             2GB Non-ECC

Motherboard     ASUS P5VD2-MX SE

Storage         RAID 1: 250GB WD Blue and Seagate Barracuda

Uses            Webserver, NAS, Mediaserver, Database Server

 

Quotes of Fame

On 8/27/2015 at 10:09 AM, Drixen said:

Linus is light years ahead a lot of other YouTubers, he isn't just an average YouTuber.. he's legitimately, legit.

On 10/11/2015 at 11:36 AM, Geralt said:

When something is worth doing, it's worth overdoing.

On 6/22/2016 at 10:05 AM, trag1c said:

It's completely blown out of proportion. Also if you're the least bit worried about data gathering then you should go live in a cave a 1000Km from the nearest establishment simply because every device and every entity gathers information these days. In the current era privacy is just fallacy and nothing more.

 

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6864749
Share on other sites

Link to post
Share on other sites

It depends on what type of files you're compressing. Every different type of file compresses differently.

 

In some cases, you can compress a file to 1/4th of its size. Rare, but I've seen it. In other cases, you can only lower it by a MB or two. In other cases, you can actually make the file size larger.

 

its video files, mp4. h.264. and i got lets say 100 files... 100gb total. it become like 98gb or sometimes even 101-102gb and i dont understand how some can get it like (when transfer on internet) 200mb out of a 2-3gb file. and there are so many types of ways to compress...and that i dont even know! 

┏(◑̃.◑̃)┛ Totally Not Dangerous ┏(◐̃.◐̃)┛

i7 4790K / 16GB RAM \ 250GB SSD

 

 

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6864760
Share on other sites

Link to post
Share on other sites

If it's something like a video file (particularly h264) or a .zip file you are compressing, you won't see much difference at all - because it's already compressed. 7zip has performed optimally for me when compressing word documents, pictures (such as jpegs and bitmaps) and audio files.

 

Linus did a techquickie on compression at some point...

 

 

ah. how about png picture files? like 2-3000 of them... any smart way to get that working?  ^_^

┏(◑̃.◑̃)┛ Totally Not Dangerous ┏(◐̃.◐̃)┛

i7 4790K / 16GB RAM \ 250GB SSD

 

 

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6864768
Share on other sites

Link to post
Share on other sites

ah. how about png picture files? like 2-3000 of them... any smart way to get that working?  ^_^

png has integrated lossless compression. If that's already set to maximum, you're unlikely to see any additional compression. Pretty much the only way to decrease filesize in that case is lossy compression such as jpeg. But as said, that means you lose quality. Might be acceptable, might not be, depends on your priorities.

As a general guidelines, pure text files tend to compress very well, files which are already compressed (as mentioned, h264, zip, png, jpeg etc.) will usually not yield significant improvements as long as you stick to lossless compression.

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6864902
Share on other sites

Link to post
Share on other sites

png has integrated lossless compression. If that's already set to maximum, you're unlikely to see any additional compression. Pretty much the only way to decrease filesize in that case is lossy compression such as jpeg. But as said, that means you lose quality. Might be acceptable, might not be, depends on your priorities.

As a general guidelines, pure text files tend to compress very well, files which are already compressed (as mentioned, h264, zip, png, jpeg etc.) will usually not yield significant improvements as long as you stick to lossless compression.

Blasphemy! There's a program called PNG Gauntlet that combines 3 lossless compression tools into one and shrinks pngs.

 

And in the case of doing a batch of 3000 images pnggauntlet will work or just optipng which i believe has a linux cli tool.

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6866339
Share on other sites

Link to post
Share on other sites

Blasphemy! There's a program called PNG Gauntlet that combines 3 lossless compression tools into one and shrinks pngs.

 

And in the case of doing a batch of 3000 images pnggauntlet will work or just optipng which i believe has a linux cli tool.

Oh, sweet, hadn't tried optipng yet. On a few non-optimized ffmpeg screengrabs it seems to yield somewhere around 30% smaller file size, not bad. And yeah, it is easily scriptable via commandline.

As a reference, I also compressed the same pngs with jpeg, quality 90 (using imagemagick). File size went down to between 10% and 20% of the original. Detail preservation was very good, but colors got washed out. I am however definitely no jpeg expert, nor have I had time to fiddle around with this extensively, so maybe the color issue could be fixed, not entirely sure. Just thought I'd add this.

As for toolz like 7zip etc.: Since those are truly lossless (as in: you get the same bits back when you reverse the process, which isn't usually the case with png optimization as far as I'm aware), space gains are mostly negligible with already compressed files in my experience, as mentioned (hell, I even managed to increase filesize slightly by putting some png files into xz :D ).

BUILD LOGS: HELIOS - Latest Update: 2015-SEP-06 ::: ZEUS - BOTW 2013-JUN-28 ::: APOLLO - Complete: 2014-MAY-10
OTHER STUFF: Cable Lacing Tutorial ::: What Is ZFS? ::: mincss Primer ::: LSI RAID Card Flashing Tutorial
FORUM INFO: Community Standards ::: The Moderating Team ::: 10TB+ Storage Showoff Topic

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6870217
Share on other sites

Link to post
Share on other sites

Oh, sweet, hadn't tried optipng yet. On a few non-optimized ffmpeg screengrabs it seems to yield somewhere around 30% smaller file size, not bad. And yeah, it is easily scriptable via commandline.

As a reference, I also compressed the same pngs with jpeg, quality 90 (using imagemagick). File size went down to between 10% and 20% of the original. Detail preservation was very good, but colors got washed out. I am however definitely no jpeg expert, nor have I had time to fiddle around with this extensively, so maybe the color issue could be fixed, not entirely sure. Just thought I'd add this.

As for toolz like 7zip etc.: Since those are truly lossless (as in: you get the same bits back when you reverse the process, which isn't usually the case with png optimization as far as I'm aware), space gains are mostly negligible with already compressed files in my experience, as mentioned (hell, I even managed to increase filesize slightly by putting some png files into xz :D ).

Ya I'm pretty sure these png optimizations are more complex. Like shrinking amount of colours, and rectangles of same coloured pixels etc. otherwise like you mentioned 7zip would get the same results as optipng

Link to comment
https://linustechtips.com/topic/516187-file-compression/#findComment-6898193
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

×