How File Compression Works

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 625

  • @apexshinbi638
    @apexshinbi638 3 ปีที่แล้ว +2808

    just put your hard drive in a hydraulic press

    • @karolus28
      @karolus28 3 ปีที่แล้ว +18

      yes

    • @nan_cat
      @nan_cat 3 ปีที่แล้ว +8

      yes

    • @Ultra289
      @Ultra289 3 ปีที่แล้ว +17

      I alredy did that with some floppy disks

    • @egg5474
      @egg5474 3 ปีที่แล้ว +50

      Meanwhile on another channel :
      "This futa hentai is really dangerous and could attack at any moment, so we have to deal with it"

    • @Andrew9908
      @Andrew9908 3 ปีที่แล้ว +46

      @@egg5474
      w h a t

  • @karolus28
    @karolus28 3 ปีที่แล้ว +2345

    "squish that cat"

    • @geist453
      @geist453 3 ปีที่แล้ว +30

      HI I CANT GET THE VIDEO TO LOAD IT SAYS I AM NOT CONNECTED TO THE INTERNET ...WHY ARE COMPUTERS SO COMPLICATED...WTF IS THE INTERNET ANYWAY, I JUST WANT TO LEARN HOW TO COMPRESS MY FILES I HAVE THOUSANDS OF PAPERS EVERYWHERE AND NEED TO COMPRESS

    • @karolus28
      @karolus28 3 ปีที่แล้ว +88

      @@geist453 squish 'em papers

    • @FrozenArtLover
      @FrozenArtLover 3 ปีที่แล้ว +1

      Aha!!!

    • @some_spacebread
      @some_spacebread 3 ปีที่แล้ว +3

      @@geist453 you sound like you are not experienced with computers

    • @Mikelica69
      @Mikelica69 2 ปีที่แล้ว

      Xd

  • @SpasmGazm
    @SpasmGazm 3 ปีที่แล้ว +880

    Huffman encoding: the cat has ten million hairs, four legs, two ears, two eyes. Here's a tree with all the parts necessary and this string is the instruction to reassemble it.

    • @gickygackers
      @gickygackers 3 ปีที่แล้ว +41

      @Anôn Imo pissed off much?

    • @ViddyOJames
      @ViddyOJames 3 ปีที่แล้ว +42

      @Anôn Imo nobody asked

    • @geist453
      @geist453 3 ปีที่แล้ว +42

      HI I CANT GET THE VIDEO TO LOAD IT SAYS I AM NOT CONNECTED TO THE INTERNET ...WHY ARE COMPUTERS SO COMPLICATED...WTF IS THE INTERNET ANYWAY, I JUST WANT TO LEARN HOW TO COMPRESS MY FILES I HAVE THOUSANDS OF PAPERS EVERYWHERE AND NEED TO COMPRESS

    • @gickygackers
      @gickygackers 3 ปีที่แล้ว +17

      @@geist453 you can thank Steve jobs and the UX for normalizing computing for normies 😌 otherwise IT professionals would be out of a job.

    • @mymonstercodepunchs9179
      @mymonstercodepunchs9179 3 ปีที่แล้ว +3

      @@gickygackers sure.....

  • @SomeNot
    @SomeNot 3 ปีที่แล้ว +1250

    Compression is really quite incredible. I had a high resolution heic image and it was only around 70MB. I exported it as a tiff and it was almost 500MB

    • @hbarudi
      @hbarudi 3 ปีที่แล้ว +104

      heic is new kind of compression algorithm which is also being used for videos but it is always lossy unless specified as lossless. Another kind of such lossy compression is the djvu format which is capable of downsizing entire scanned thick books into multipage image file with several hundred pages. Converting that djvu to pdf will show that effect of 70mb djvu file to 500mb pdf.

    • @Guztav1337
      @Guztav1337 3 ปีที่แล้ว +40

      Sadly heic and djvu are not widely adopted and used yet

    • @simulping4371
      @simulping4371 2 ปีที่แล้ว +16

      heic sucks
      avif better

    • @Alex-ck4in
      @Alex-ck4in 2 ปีที่แล้ว +7

      Are you lot even speaking words?

    • @Minersteev
      @Minersteev 2 ปีที่แล้ว +10

      dude that picture is bigger than half life blue shift

  • @Zonno5
    @Zonno5 3 ปีที่แล้ว +668

    loving the thumbnail buddy. keep it up!

    • @Atlas-yh6vg
      @Atlas-yh6vg 3 ปีที่แล้ว +1

      hahaha me too

    • @yekh
      @yekh 3 ปีที่แล้ว +29

      all his thumbnails are cool, not like ur typical teacher trying to use a 2011 meme unironically.

    • @Atlas-yh6vg
      @Atlas-yh6vg 3 ปีที่แล้ว +10

      @@yekh why is this so damn true

    • @nikolas8741
      @nikolas8741 3 ปีที่แล้ว +1

      @Zonno5 Nice haircut

    • @mrplus1312
      @mrplus1312 3 ปีที่แล้ว +3

      Yeah but...... I wanted a meme.....

  • @francescomazzucco6264
    @francescomazzucco6264 3 ปีที่แล้ว +239

    "In some rural areas you still can't stream 4k video" In entire countries man, entire countries

    • @cahallo5964
      @cahallo5964 2 ปีที่แล้ว +41

      I find it really funny that you can do it in a Brasilian fabella but can't in an Australian city

    • @TtEL
      @TtEL 2 ปีที่แล้ว +44

      @@cahallo5964 Cause all the kangaroos stomping on the internet cables, and the damage causes the cables to be less efficient, and in return, slower.

    • @charautreal
      @charautreal 2 ปีที่แล้ว +1

      My country be like

    • @Music-nn9mi
      @Music-nn9mi 2 ปีที่แล้ว

      @@TtEL bruh the kangaroos hate technology

    • @_-_-Sipita-_-_
      @_-_-Sipita-_-_ 2 ปีที่แล้ว +1

      In my country the highest quality is 1k on mobile, and HD on Pc, it's very normal

  • @mjmjmjmj4229
    @mjmjmjmj4229 3 ปีที่แล้ว +226

    1:27 “whereas the lossless one clearly there is some information lost” just wanted to point it out

    • @Zorrr
      @Zorrr 3 ปีที่แล้ว +4

      Just making sure

    • @alexismandelias
      @alexismandelias 3 ปีที่แล้ว +4

      Did I lose this part of the video?

    • @morgengabe1
      @morgengabe1 3 ปีที่แล้ว +4

      Apparently

    • @wibs0n68
      @wibs0n68 2 ปีที่แล้ว +1

      @@alexismandelias *compressed

  • @connor_santoyo
    @connor_santoyo 3 ปีที่แล้ว +179

    JPEG XL is an upcoming compression method that will solve most of our problems with image files. It has a lossy mode that is way smaller than JPEG. It has a lossless mode that is smaller than PNG. And has support for all the kinds of metadata that you could want, including high color depth.

    • @vylbird8014
      @vylbird8014 3 ปีที่แล้ว +51

      But the same is true of JPEG2000, and WebP, and HEIF, and FLIF. It's not enough to be better: Any replacement has to be so much better it would overcome the convenience factor using a universally-supported format like JPEG.

    • @fatweeb1545
      @fatweeb1545 2 ปีที่แล้ว +113

      Situation: there are 5 competing image formats
      That's ridiculous, let's develop one that covers all use cases!
      Result: there are 6 competing image formats

    • @dIancaster
      @dIancaster 2 ปีที่แล้ว +34

      @@fatweeb1545 Linux distros in summary.

    • @snowwsquire
      @snowwsquire 2 ปีที่แล้ว +3

      @@dIancaster no because u dont need one distro only

    • @IAm-zo1bo
      @IAm-zo1bo 2 ปีที่แล้ว +1

      @@snowwsquire you don't? My mint isn't enough?

  • @idontbelieveinchristmas3935
    @idontbelieveinchristmas3935 3 ปีที่แล้ว +159

    Jpeg's use the discrete cosine Fourier transform for all you math nerds

    • @Akab
      @Akab 3 ปีที่แล้ว +4

      Thanx ᕙ( ͡° ͜ʖ ͡°)ᕗ

    • @mathematicalninja2756
      @mathematicalninja2756 3 ปีที่แล้ว +1

      I appreciate that

    • @marcelo55869
      @marcelo55869 3 ปีที่แล้ว +3

      talk about the wavelets too...

    • @kaikyscot6968
      @kaikyscot6968 3 ปีที่แล้ว

      Thanks

    • @farterboy
      @farterboy 3 ปีที่แล้ว +1

      i prefer french cosine oui

  • @EpicTyphlosionTV
    @EpicTyphlosionTV 3 ปีที่แล้ว +468

    Nobody:
    Torrents: **Puts a .zip in a .zip in a .zip... in a .zip**

    • @someonestolemyname
      @someonestolemyname 3 ปีที่แล้ว +183

      At that point you are just adding meta data to the file and making the file larger

    • @tovape
      @tovape 3 ปีที่แล้ว +96

      iso to zip to rar to tar

    • @clou09
      @clou09 3 ปีที่แล้ว +80

      Those kinds usually hide malware

    • @rockyroad000
      @rockyroad000 3 ปีที่แล้ว +51

      @@someonestolemyname the metadata isnt too big of an isue. but you cant get any more compression anyways from doing that

    • @wompastompa3692
      @wompastompa3692 3 ปีที่แล้ว +28

      Why are you trying to download 42.zip?

  • @janosfeher4744
    @janosfeher4744 3 ปีที่แล้ว +42

    This is the first time I see the XP background in wide aspect ratio. Didn't even know there are other hills in the background.

  • @jansustar4565
    @jansustar4565 2 ปีที่แล้ว +56

    another thing with compression:
    images;
    when the area has a slight deviation in color but still enough to look weird if it is all the same color; instead of storing all the 24 bits to get 255:255:255 color, you can just take a pixel and relate all other similar colors to it. so if there is barely any difference, you can express that in far fewer bits.
    and about text
    you can overlap selection.
    so the phrase
    Harry Potter and the philosopher's stone
    contains several frequent words, that you don't need to repeat

  • @aidang7182
    @aidang7182 3 ปีที่แล้ว +71

    i don’t understand anything about your content but i like your personality and you’re funny so im going to sub

    • @AllahDoesNotExist
      @AllahDoesNotExist 3 ปีที่แล้ว +16

      Do you know why you don't understand it?

    • @yniekac8851
      @yniekac8851 3 ปีที่แล้ว +11

      For me its like half on half. Sometimes I get it but once he rambles on I just lose it but I love the video

    • @gickygackers
      @gickygackers 3 ปีที่แล้ว +16

      @@yniekac8851 a rambling teacher is the best teacher. And that's real btw

    • @harshsinha62
      @harshsinha62 3 ปีที่แล้ว +2

      same. Some I get Some I don't get

    • @onel6870
      @onel6870 3 ปีที่แล้ว

      Story of my life haha 😂😅

  • @M1America
    @M1America 3 ปีที่แล้ว +63

    Another interesting form of compression is huffman coding. The jist of how that works is that it orders the different characters by order of probability of occurrence of a file on a binary tree, then it uses its placement on the tree as a stand in for its value. The effect is reduced number of bits for common characters at the cost of extra number of bits for less-used ones. A very cool technique and is very complimentary with other compression algorithms, and is also used commonly over channels.

    • @MsZiomallo
      @MsZiomallo 2 ปีที่แล้ว +2

      There are 2 alternatives: arithmetic coding (e.g. CABAC) which compresses way better, but is way more complex, and there's Asymmetric Numeral Systems (ANS) which compresses just a bit worse than CABAC while being only slightly more complex than Huffman, making it a perfect deal and being used by lots of tech giants, and also in next-generation JPEG XL image format.

  • @Phantom_Boi
    @Phantom_Boi 3 ปีที่แล้ว +45

    Lossless
    “As you can see some of the information has been lost”
    Wait w h a t ?

    • @dotmiracle
      @dotmiracle 3 ปีที่แล้ว +3

      The visible pixels.

  • @spazmaster6731
    @spazmaster6731 3 ปีที่แล้ว +40

    do I *look* like I know what a jay-peg is? I just want a picture of a god-dang hot dog

    • @techhelpportalextras3007
      @techhelpportalextras3007 3 ปีที่แล้ว

      Jpeg*

    • @solanumtuberosa
      @solanumtuberosa 3 ปีที่แล้ว

      Whips out mini wd40

    • @grod5998
      @grod5998 3 ปีที่แล้ว +14

      @Tech Help Portal Extras yeah thanks for that. He definitely wasn’t misspelling for comedic effect or anything

    • @Pariatech
      @Pariatech 3 ปีที่แล้ว

      I'm looking for a tap & die and some wd40. Do you know what an hammer is?

    • @solanumtuberosa
      @solanumtuberosa 3 ปีที่แล้ว +3

      @Nem Gam Boi stf redditor

  • @afallingtree9114
    @afallingtree9114 3 ปีที่แล้ว +138

    its almost impossible to tell the difference between the side-by-side images on my crappy rural connection

    • @afallingtree9114
      @afallingtree9114 3 ปีที่แล้ว +8

      @@weakspirit_ bro starlink will change everything, my ISP wont know what hit them

    • @xfied
      @xfied 3 ปีที่แล้ว +4

      1mb/s gang

    • @GayBrain
      @GayBrain 3 ปีที่แล้ว +1

      @@afallingtree9114 elomegaluln musk

    • @afallingtree9114
      @afallingtree9114 3 ปีที่แล้ว +1

      @@xfied you bet

    • @BhargavSushant
      @BhargavSushant 3 ปีที่แล้ว +1

      There was a time I download torrent over ppp connection, 12~64 kbps
      And this was 2008.
      Really taught me patience.

  • @adithyarathnayake9797
    @adithyarathnayake9797 3 ปีที่แล้ว +24

    Yo I just want u to know I appreciate u so much man. I started studying computer engineering at a uni and the lectures just made me loose all most all interest I had in CE. But ur the guy who bought back my passion. Thanks G.

  • @chromacat248
    @chromacat248 3 ปีที่แล้ว +33

    "Whoops, didn't mean to delete everything there."

  • @twotimechampion1151
    @twotimechampion1151 3 ปีที่แล้ว +70

    Based and catpilled thumbnail

    • @entropy_7827
      @entropy_7827 3 ปีที่แล้ว +3

      forsenCD ✌️

    • @smrki506
      @smrki506 3 ปีที่แล้ว +2

      THE TWO TIME BACK TO BACK 💿

    • @rafaelpolonio4837
      @rafaelpolonio4837 3 ปีที่แล้ว

      Imagine actually having to concatenate stuff.

    • @Nostalgia---7777
      @Nostalgia---7777 5 หลายเดือนก่อน

      that profile pic didnt age well

  • @TheSteveTheDragon
    @TheSteveTheDragon 3 ปีที่แล้ว +219

    KGB: Throws cat into the garbage compressor.

    • @robdom91
      @robdom91 3 ปีที่แล้ว +26

      Unpacking the poor thing would make a big mess though...
      I think that would be a lossy compression. End result: minus one cat.

    • @vincentschumann937
      @vincentschumann937 3 ปีที่แล้ว +7

      @@robdom91 end result: 27 cat parts

    • @cayniner
      @cayniner 3 ปีที่แล้ว +3

      ok that went really dark

    • @undefined6512
      @undefined6512 3 ปีที่แล้ว +4

      *Tom scream*

    • @alkaupadhyay7650
      @alkaupadhyay7650 3 ปีที่แล้ว +3

      Bro that hit me way too hard, it took me four days to compress a 5gb folder

  • @fffmpeg
    @fffmpeg 3 ปีที่แล้ว +49

    raw to jpeg actually gets rid of a lot of info, including the dynamic range and editing capabilities, because it has all of the info from sensor, so you can edit the white balance perfectly

    • @sanjacobs6261
      @sanjacobs6261 3 ปีที่แล้ว +2

      Hence, lossy compression
      Edit: Yes, I know.

    • @1vader
      @1vader 3 ปีที่แล้ว +15

      @@sanjacobs6261 That's not really what lossy compression means though. You lose the same info when converting to PNG which is a lossless format. The difference is that with a PNG you only lose this kind of metadata information whereas with jpeg you lose actual image information. Although how much and whether it's even noticeable very much depends on the settings since you can configure how strong jpeg should compress an image. But with high compression, you will very much notice artifacts on jpeg compressed images and for images with plain backgrounds/colors and text, it's much worse and much more noticeable even on high-quality settings.
      But removing metadata has nothing to do with compression. There is no compression whatsoever going on there. You are just deleting information. It's like saying "I'm compressing an image" when you delete the lower half of it. The amazing thing about lossy compression is that it removes information but is still able to reconstruct an image that ideally looks exactly the same to the human eye from the remaining data.

    • @kiyu3229
      @kiyu3229 2 ปีที่แล้ว

      @@sanjacobs6261 You know what ?

    • @sanjacobs6261
      @sanjacobs6261 2 ปีที่แล้ว

      @@kiyu3229 1vader pretty much summed it up

    • @kiyu3229
      @kiyu3229 2 ปีที่แล้ว

      @@sanjacobs6261 wow you replied very fast

  • @malwareangel01
    @malwareangel01 7 หลายเดือนก่อน +1

    its incredible how this works! program repacks are especially interesting to me, its just amazing how we can take a game thats ~100+ gb and repack it, losslessly, into a 40gb package!

  • @matthewday7565
    @matthewday7565 2 ปีที่แล้ว +24

    Zooming in the Bliss image shows evidence of 8x8 JPEG compression artefacts, one problem with lossy compression is that not only does it discard some things, but it can add things that weren't there before, such as those JPEG artefacts or some quite nasty effects if MP3 is pushed too far.
    Recompression is particularly bad, if you compress to JPEG, and then recompress the result again to a smaller file, the quality will be worse than if you started again with an uncompressed or at least best quality original, as the second compression will be counting the artefacts of the first as part of the image.

  • @typhoon109
    @typhoon109 2 ปีที่แล้ว +20

    Thank you for this video! i was really confused whenever my friends said "compress the file", i tried to compress it by throwing my Hard drive out the window but my performance was a little worse after that so i decided to look on the internet for a new SSD and I saw this video! i will remember this for about a month, bcs i still need to test if throwing a SSD out the window saves storage capacity, Thx!

    • @averagehololiveenjoyer8496
      @averagehololiveenjoyer8496 2 ปีที่แล้ว +5

      You did it the wrong way, you need to smash it to flatten more of the surface before you throw it.
      Thank me later 👍

    • @typhoon109
      @typhoon109 2 ปีที่แล้ว +4

      @@averagehololiveenjoyer8496 thanks! that really helped, although, idk if it will work yet bcs i've got to find the missing pieces to reattach

    • @typhoon109
      @typhoon109 2 ปีที่แล้ว

      @Technophilius Pulcherax i tried that but i just ended up with a low-profile ssd

    • @Music-nn9mi
      @Music-nn9mi 2 ปีที่แล้ว

      See what you need to do is launch it into space at a black hole, perfect compression to just a few bits of info

    • @typhoon109
      @typhoon109 2 ปีที่แล้ว

      @@Music-nn9mi i'll met it around the other side of the wormhole, thx!👍

  • @patrikcath1025
    @patrikcath1025 2 ปีที่แล้ว +4

    You need to put a magnet on your hard drive to draw all the data into one place and nicely compact it to make more space. Make sure to move it around a bit in case some data is stuck

    • @LeumazDnazor
      @LeumazDnazor ปีที่แล้ว +1

      This actually sounds convincing lmao

  • @smeefer
    @smeefer 3 ปีที่แล้ว +29

    1:27 I think you mean the lossy compression type. You said lossless when explaining both examples.

  • @OrangeC7
    @OrangeC7 3 ปีที่แล้ว +4

    The thumbnails on this channel are amazing

  • @PardusRain
    @PardusRain 3 ปีที่แล้ว +7

    Compression aka that conversation between the hardware and software for finding the data in ram and hoping we don't end up fusing all our memory cats together.
    Anyhow I am a sucker for these types of niche videos and their surprisingly relaxing to watch.

  • @Xeotroid
    @Xeotroid 3 ปีที่แล้ว +13

    >whether you're loading the data off a CD
    _laughs in uncompressed Red Book audio_

  • @pabloschool2610
    @pabloschool2610 3 ปีที่แล้ว +32

    i only compress isos onto a flash drive to distribute to my school mates

  • @roygalaasen
    @roygalaasen 3 ปีที่แล้ว +2

    The irony of showing a before and after compression picture and then run it through compression before presenting it to his viewers.

  • @stradomus9673
    @stradomus9673 3 ปีที่แล้ว +4

    Kenny keeping the thumbnail metagame high, as always ! Great vid sir

  • @mestari6289
    @mestari6289 3 ปีที่แล้ว +2

    I already know all this but for some reason I still want to watch this and your other similar videos

  • @letter-a
    @letter-a 11 หลายเดือนก่อน

    1:17 dam lossless and lossless have so many differences thank you for this information!

  • @elektra81516
    @elektra81516 3 ปีที่แล้ว +9

    "like a boomer"
    *looks at my CD collection* "its okay i still lvoe you"

    • @Triadii
      @Triadii 3 ปีที่แล้ว +1

      My vinyl collection..

  • @allmightfan
    @allmightfan ปีที่แล้ว

    going to computer information college and kept reading compression and didnt understand it my ADHD was frustrated from not knowing XD thank you for the informative video and your time

  • @aurafox1
    @aurafox1 2 ปีที่แล้ว +1

    So, compression is basically just refactoring code but for content. That's actually really interesting and I'm kinda surprised I never thought of it like that. In a way, a .zip file is more like a blueprint for how to build the file than just packing the file really tightly.

  • @craftykit2242
    @craftykit2242 2 ปีที่แล้ว +1

    Saw a screenshot of the thumbnail on tumblr and I just had to come see this video because of it

  • @trulyinfamous
    @trulyinfamous 2 ปีที่แล้ว +4

    Compression is definitely crazy stuff. A couple examples I've seen: a steam game with a download of around 7gb, and an uncompressed size of around 12gb.
    Another example: I exported one of my songs in the WAV format and it was over 50mb in size, while the MP3 version was less than 5mb.
    Also, about "some rural places not being able to stream 4k," before I got starlink, which gives me a download speed of 100+Mbps, my old internet had a download speed of under 12mbps on rare occasion.

    • @Nick1921945
      @Nick1921945 2 ปีที่แล้ว

      Just causal awareness of packed steam games vs raw.

    • @Nick1921945
      @Nick1921945 2 ปีที่แล้ว

      Converting mp3 to wav is a sin.

  • @nikolas8741
    @nikolas8741 3 ปีที่แล้ว +8

    Wow it's amazing how we can compress information and send it through electricity and microwave. imagine how quantum computing will compress information?

    • @celticwinter
      @celticwinter 3 ปีที่แล้ว +3

      I can't. A quantum computer is not just a much faster desktop computer

    • @elpsykoongro5379
      @elpsykoongro5379 2 ปีที่แล้ว

      @@celticwinter is it a brain of an ia?

  • @kevinross6235
    @kevinross6235 3 ปีที่แล้ว +4

    The thumbnail is just great

  • @PrismaSpots
    @PrismaSpots 3 ปีที่แล้ว +1

    I 100% clicked the video due to to the thumbnail ngl, I still liked the information given by the content of it

  • @morgan3625
    @morgan3625 3 ปีที่แล้ว +1

    Way better explanation than what my teacher did lmao

  • @seilaessecanalnvaitervideo6414
    @seilaessecanalnvaitervideo6414 3 ปีที่แล้ว +1

    "pishure" i like the way you pronounce the word "picture"

  • @ElectricSlevin
    @ElectricSlevin 3 ปีที่แล้ว

    top tier thumbnail game as always...DNA would be a good comparison for cat compression

  • @booleanlie8331
    @booleanlie8331 3 ปีที่แล้ว

    Legit a better explanation than my 60,000 dollar cs course...

  • @rue04
    @rue04 2 ปีที่แล้ว +2

    I love how he says "In fact some rural places still can't stream 4k"
    I'm from Germany, have live in a small city, have one of the best internet connections in a 20km radius and I sometimes can't even stream 1080p...
    I love Germany...

  • @VaalkinTheOnly
    @VaalkinTheOnly 2 ปีที่แล้ว

    I don't know why I watched this video but thank you for making it

  • @ahsanbulbul8512
    @ahsanbulbul8512 3 ปีที่แล้ว +9

    I got clickbaited by those kitty files...😂

  • @nsquezada27
    @nsquezada27 2 ปีที่แล้ว +1

    One correction I'd make is that the difference between a raw photo and a jpg is actually significant. Very significant. Much more than just Metadata. Raw photo files have much more data than can be seen by just viewing a side by side preview on a 8bit monitor. If you've ever edited raw files from a professional camera and also jpgs side by side you'd emmidiately understand how much data is within those raw files. You can take a photo that is visually pitch black and lift exposure to find detail. You can pull highlights down from white. Color banding is pretty much nonexistent if you're editing in 16bit as well. Now once it's edited it will look more or less the exact same to anyone not in the know. Jpgs are great for presenting or even printing nowadays. But not for editing and not for storing all a photos potential

  • @laz3664
    @laz3664 3 ปีที่แล้ว +10

    I love how he uses bliss as an example at 6:23

  • @robertketch8508
    @robertketch8508 3 ปีที่แล้ว +4

    Thanks, you explained compression to me and I understood you.. That's impressive 👍

  • @AntiCheap
    @AntiCheap 3 ปีที่แล้ว +2

    Great videos I think you touched most subjects!!!

  • @slavko5666
    @slavko5666 3 ปีที่แล้ว +23

    Talk about single GPU passtrough on Gentoo, there's a reddit post on r/Gentoo with the title: "gentoo single gpu vfio passthrough scripts"

  • @FritzelMedia
    @FritzelMedia 3 ปีที่แล้ว +5

    Please note the difference between a picture and a pitcher...

  • @Ozzymand
    @Ozzymand 3 ปีที่แล้ว +17

    1:27 Lossy*

  • @nikolas8741
    @nikolas8741 3 ปีที่แล้ว

    I don't watch cat videos. some how the algorithm decide to give me cat videos recommendation after watching how file compression works! Thanks u 2

  • @scheimong
    @scheimong 3 ปีที่แล้ว +1

    As we all know, every time a file is compressed a cat is mercilessly squished into a box.

  • @aerglass9816
    @aerglass9816 3 ปีที่แล้ว

    The thumbnail is gold

  • @YYY66767
    @YYY66767 2 ปีที่แล้ว

    that thumbnail is incredible

  • @Wahinies
    @Wahinies 2 ปีที่แล้ว +2

    The worst types of compression actually both happened in the 90s: hard drive compression only achieved ratios similar to ZIP and would grind any CPU at the time to a halt. The other was "SoftRam" that was said to compress data in memory to free up space when in actuality it faked the memory space without doing anything. Compression used for ill gotten gains in both cases really...

  • @trashyemployee222
    @trashyemployee222 3 ปีที่แล้ว

    Ah yes, my favourite tech video thumbnail in youtube

  • @Shulsa
    @Shulsa 2 ปีที่แล้ว

    This guy knows how to make a good thumbnail. I clicked because cat

  • @fraudfish
    @fraudfish 3 ปีที่แล้ว

    Absolutely loving these videos

  • @The-pf4zy
    @The-pf4zy 3 ปีที่แล้ว +1

    Admit it, you clicked on this video because of the thumbnail.

  • @csverse
    @csverse 2 ปีที่แล้ว

    Basically, compression is like making a pancake. Flattening all the good stuff up and remains delicious!

  • @prateeksarin3555
    @prateeksarin3555 ปีที่แล้ว

    They should have included this technical part in the sitcom it would have been great and exclusive content for nerds shows amount of hard work that goes into building these things

    • @prateeksarin3555
      @prateeksarin3555 ปีที่แล้ว

      They could have taken wav to mp3 as a use case

    • @prateeksarin3555
      @prateeksarin3555 ปีที่แล้ว

      Showing that compression in not literal sense but how excess bandwidth is reduced to give the same experience which isn’t detected by the ear

  • @rhetorical_thinking
    @rhetorical_thinking 2 ปีที่แล้ว

    thank you for such a wonderful thumbnail

  • @TtEL
    @TtEL 2 ปีที่แล้ว +2

    1:27 He never talks about the Lossy one. It's always the Lossless one!

  • @ripthedvd9728
    @ripthedvd9728 2 ปีที่แล้ว

    This guy literally uses the same Vim theme I do and explains JPGs via the Bliss wallpaper. How did I stumble onto this near perfect channel?

  • @j7ndominica051
    @j7ndominica051 ปีที่แล้ว

    Compression mostly takes advantage of similar colors being side by side. It can encode the variation from the initial shade in fewer bits. Repetition only appears in artificial images like screenshots that contain exactly the same shapes.

  • @joefish6546
    @joefish6546 11 วันที่ผ่านมา

    Language is the lossy compression-decompression cycle of the human mind. Your thoughts are much larger than anything you can convey in speech, but when you tell someone your idea, they decompress it in their own minds and fill in the gaps with their own ideas. We should incorporate this concept into AI to accelerate our progress towards AGI.

  • @Nick1921945
    @Nick1921945 2 ปีที่แล้ว

    The reason why they're are so many formats for each nature of data presentation, is because different types handle different natures of data differently. Gif handles black and white pictures best, png holds data very accurately and is this very heavy normally, and jpg is like the middle ground that is like the minivan for pictures. It's kind ugly but it can carry a respectable amount of accuracy in relation to the original source, without requiring a ton of gas.
    Same goes for videos like mkv, mp4, avi, wmv. When it comes to music or audio, I like my absolute favorite songs to be in hefty flac, instead of mp3 so I can squeeze all of the quality, that the producer meant me to hear, out of it. If it's a normal song 192-320kbps mp3 is plenty smooth /clean enough. If it's an audiobook or old-school game music, 96-128kbps is functionally plenty. Funny enough, audiobooks are commonly marketed out into 96kbps, BUT at 48000khz range instead of the common 44100 in order to retain the depth of audio that can easily be lost when compressing into the fuzzier/blurrier lower density bit rates.
    This is usefull to know if you like to share files online and want to shrink enormous files to cut down on a file size, transfer times, or if you feel chained by a mysterious 8mb file size limit.
    Rule of thumb for simple folk would be that full quality (lossless) is only completely utilized if you have the equipment for it. If your device is low quality, you will have a harder time noticing the fine difference in lossless vs lossy compressions, and you will be wasting time and energy on something out of reach.
    Last note, all compressions have xy or z amount of options to perfect quality vs file size. I recognize wav as having minimal options for audio compression and being rudely hefty in data, compared to flac with more flexibility.
    I like mkv, png, jpg, gif, mp3 and flac.
    I hate avi, bmp, and wav the most.

  • @Rndmpacman
    @Rndmpacman 3 ปีที่แล้ว

    Tom Scott's video on text compression gives a much more detailed look at how it works. Titled: "How Computers Compress Text: Huffman Coding and Huffman Trees"

  • @audaciousifti
    @audaciousifti 3 ปีที่แล้ว

    Genuinely interesting, thanks for the video.

  • @synthesoul
    @synthesoul 3 ปีที่แล้ว +1

    The best way to compress Harry Potter is to take every single vowel and consonant and give each one a coordinate.

    • @U6kCtBuN
      @U6kCtBuN 2 ปีที่แล้ว

      heres an even better one, what if you just called all the characters from a tree and didnt write coordinates since thats bloat just write them in order

    • @synthesoul
      @synthesoul 2 ปีที่แล้ว

      @@U6kCtBuN Just write the characters based on their HEX values.

    • @partake7591
      @partake7591 2 ปีที่แล้ว

      Just take .jpg scans of every page 5head then you have no text data to store

  • @dualia-s74m
    @dualia-s74m 3 ปีที่แล้ว +1

    Every video this channel shits out of nowhere is so interesting. you cant do that. i hate this. i dont have time to go thru them all. such an underrated channel. why lossless when im downloading illegal repacks like right now. how do you know so much about the compression method of cats. WHO are you?

  • @jon5th5nk
    @jon5th5nk 3 ปีที่แล้ว +1

    Love the Videos 👍🏻❤️

  • @theepicslayer7sss101
    @theepicslayer7sss101 3 ปีที่แล้ว +2

    on TH-cam, i often have to put the video in 1440p to view it in real 1080p... also something funny i noticed is that in the past the limiting factor to compression was processing power! since they could compress it further but decoding it in real time was harder on some machines. tho i do not miss the day where i waited a week for one 90 MB blurry anime episode to finish downloading...

  • @f5203
    @f5203 2 ปีที่แล้ว

    Sometimes he says A but actually means B. Overall, great interesting video.

  • @albertogonorrea6195
    @albertogonorrea6195 3 ปีที่แล้ว +1

    love your vids

  • @Davidca12
    @Davidca12 3 ปีที่แล้ว +2

    Dude how do you output so many videos on a weekly basis, im geniunly curious, they are super high quality and informative, by all means, please keep it up, but hoooow??

    • @H4KD11
      @H4KD11 3 ปีที่แล้ว

      Theres many videos to make

  • @FLEj4
    @FLEj4 2 ปีที่แล้ว

    From 2:32 to 2:45... I would say it is totally wrong to see lossless compression like you did. IMHO it is not a simplification, it is just not true. However, I will think about that in the next days, I could be wrong, but it seems to contradict most I know about information theory. Anyway, thank you so much for your contents, good job!

  • @Neilos-sd6ti
    @Neilos-sd6ti 3 ปีที่แล้ว +1

    Call of duty devs: Anyway i started uncompressing.

    • @WhirlwindQuest
      @WhirlwindQuest 3 ปีที่แล้ว

      It is to make the game look better but yeah the file sizes are huge

  • @picchioknossus8096
    @picchioknossus8096 3 ปีที่แล้ว

    Man thanks for the video. Probably I have crappy speakers but the sssss and zzzz are way worse than other videos on line.

  • @kevinescobedo5633
    @kevinescobedo5633 3 ปีที่แล้ว

    Very informative, I learned some stuff!

  • @xxc1788
    @xxc1788 2 ปีที่แล้ว

    came for the thumbnail, left educated

  • @iskamag
    @iskamag 3 ปีที่แล้ว +7

    It's 2021, games can easily take hundreds of gigabytes and we still use JPEGs to save 10 kilobytes

    • @igorswies5913
      @igorswies5913 3 ปีที่แล้ว +1

      not all games are bloat tho

    • @iskamag
      @iskamag 3 ปีที่แล้ว

      @@igorswies5913 i know, but most of them are still heavy as fuck

    • @igorswies5913
      @igorswies5913 3 ปีที่แล้ว

      @@iskamag games you download once and you know it will take a long time, meanwhile when you load a website the amount of users that click off is correlated to how fast it loads. A megabyte is a lot when you think of the web

    • @iskamag
      @iskamag 3 ปีที่แล้ว

      @@igorswies5913 it's not that much heavier if you compress it good enough _looks at apple_

    • @alkaupadhyay7650
      @alkaupadhyay7650 3 ปีที่แล้ว

      @@iskamag Not gonna lie tho, there are many games compressed from 30gb to 4gb because they are just pure chonk

  • @VechsDavion
    @VechsDavion 2 ปีที่แล้ว +1

    You say "picture" as "pitcher". Like we're going to put some water in it, or maybe it'll throw a baseball at me. :)

  • @imjustsomeguy
    @imjustsomeguy 3 ปีที่แล้ว +1

    Nice vid! You should do a part 2 and include audio compression

    • @Nick1921945
      @Nick1921945 2 ปีที่แล้ว

      Audio compression knowledge is a very professional nature of knowledge and video compression is at least 4-16x more technical.
      Knowing this information is only useful to music producers/distributers, and commercial industrial movie makers; for reasons like managing how much truth you can fit on a Blu-ray disk so your customers get more bang for their buck, instead of paying full price for a product soo thick that the dvd player struggles to play it without being over worked.
      Knowledge of picture compression is much more relevant to poeple because of how many people actually do graphic design nowadays, and have to actually manage quality control on their finished product.
      For video compressions, it can be a nightmare considering how far commercial practices have gone to allow only exact settings to be applied to work on a universal scale. For example, for your dvd players, you have to encode in mkv aac, otherwise it absolutely will not be recognized by any common dvd movie player. That being said, you can't just burn mp4 files to a dvd disk and assume that because the files read on your computer, that your Blu-ray player will look at it the same way, because odds are that your br player won't even know what it's looking at. I think this problem low-key comes from 2 things. 1. Combatting bootleggers (glhf). 2. Making it harder for the smaller entrapaneurs to succeed. [Same as it ever was.)
      Companies like Nero, Adobe, and Sony have their software suites that are made to do the heavy lifting of ensuring you are compressing in exact commercial standards that are decided and agreed upon by lawyers, manufactures, and filming companies together. BUT, you may notice how expensive it is buy these programs/tools.
      This is a definite example of how it pays to be smart, if you are a DIY hero.

  • @quedtion_marks_kirby_modding
    @quedtion_marks_kirby_modding 3 ปีที่แล้ว +6

    I am trying to use 7zip in my cat and it doesn't compress, any way to fix it?

    • @HokeyBugle
      @HokeyBugle 3 ปีที่แล้ว +5

      For kitty compression (comPURRession?), you need a container the size of your desired result.
      All you need to do is place them in the same directory and the cat will actually compress into the container all on its own.

    • @quedtion_marks_kirby_modding
      @quedtion_marks_kirby_modding 3 ปีที่แล้ว +2

      @@HokeyBugle Thanks

    • @igorthelight
      @igorthelight 3 ปีที่แล้ว +1

      @@HokeyBugle But it may not want to decompress itself back :-)

  • @ZekiPlus
    @ZekiPlus 2 ปีที่แล้ว +1

    POV: you clicked this video because of the thumbnail

  • @iamstickfigure
    @iamstickfigure 3 ปีที่แล้ว +21

    You mentioned at the beginning of the video that reading a lossy compressed image like a jpeg does not involve decompression. I would argue that decoding any jpeg image involves a sort of decompression. In order to display a jpeg image on a screen, it needs to be decoded which involves computing every single pixel value in the image. Lossy compression just means that the decoded image result will not exactly match the original, but decoding a jpeg still seems like a sort of decompression.

  • @victorocampo5263
    @victorocampo5263 3 ปีที่แล้ว

    Finally black luke uploaded

  • @vladislavkaras491
    @vladislavkaras491 2 หลายเดือนก่อน

    Thanks for the video!

  • @СергійСергійчук-у6с
    @СергійСергійчук-у6с 3 ปีที่แล้ว +5

    I have been using tiling wm for so long that now I feel uncomfortable when I see that strange thing above each window.

  • @WERTBON
    @WERTBON 3 ปีที่แล้ว

    This thumbnail is way to good

  • @arzfan29
    @arzfan29 2 ปีที่แล้ว +1

    I've seen an example of this where people will put a lot of a single letter in a file, zip it, the file looks tiny but when unzipped it crashes your computer or something because it's many terabytes in size and the computer doesn't have enough storage space

  • @princemj
    @princemj 3 ปีที่แล้ว

    *AMAZING THUMBNAIL!!!*