Why is a HD image sized 2mb while a 2minute HD video = 20mb?

Chat about anything not covered in these forums, but keep it civil!

Post » Sun Jul 10, 2016 10:10 am

Why is a HD png image sized 2mb while a 2minute HD mp4 video = 20mb? How do they make the size of a video this small?

Thanks.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Sun Jul 10, 2016 4:57 pm

Because video can use temporal compression and spatial compression.

First off, the PNG (of 2Mb) is not that much compressed, and is containing a transparantie (black&white) image.
So, PNG is 2 images in one file. The fill image and the transparanty image.

To really compare, lets talk about JPEG. If you have 1 image, the compression done on that 1 image is called the spatial compression.

But video is many images in a row. So if you store the first image with a good spatial compression, you can compare the second image to that first image and only store the diffences. This is temporal compression. If image 2 is the same as image 1, then only that info is stored: The Same.

So, Mp4 has keyframes with spatial compression, comparable to JPEG. And then an amount of frames that only containes the differences to that keyframe. Till there is to much difference. Then there will be again a keyframe written. And that is the temporal compression.

You can, ofcourse, do no temporal compression with only 1 frame (image).
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sun Jul 10, 2016 4:58 pm

it all depends on the video format and what is being shot with compression. My dashcam footage is about 300mb for 3 minutes in HD.
B
43
S
18
G
8
Posts: 500
Reputation: 8,445

Post » Sun Jul 10, 2016 5:13 pm

I work with kinda 1 Giga / minute.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Mon Jul 11, 2016 10:54 am

It also depends a lot on quality settings. Even if you have a 2mb JPEG (PNG is really not suitable for photography), it could just be that it was saved with very high quality, and the video is very low quality (HD refers to the resolution, not the encoding quality). So really you can get any numbers you want by adjusting quality levels.
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Mon Jul 11, 2016 11:06 am

Ohh, I did not know they use keyframes like animation programs. Thanks guys I think I get some of it now.

@Ashley - Lol. For years I thought resolutions were the base of quality and can just be recompressed to reduce quality & size. So is the bitrate the quality rate you are referring?
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857

Post » Mon Jul 11, 2016 12:04 pm

Yeah, HD generally means 1920x1080 or 1280x720, which are basically how many pixels are used. Both that and the bitrate affect quality - obviously HD allows for more detail than SD, but it's possible to have very high bitrate SD and very low bitrate HD such that the HD actually looks worse than SD. That's pretty uncommon though since it defeats the point of having HD in the first place, but it shows technically the resolution alone doesn't guarantee quality.

Some TV channels broadcast in HD, but use a low bitrate so things commonly turn in to a blurry mush of pixels, but they can still call it HD. It's one of those marketing tricks :P
Scirra Founder
B
398
S
236
G
88
Posts: 24,428
Reputation: 194,600

Post » Mon Jul 11, 2016 12:18 pm

Ashley wrote: It's one of those marketing tricks :P

Lol. I totally agree XD
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,857


Return to Open Topic

Who is online

Users browsing this forum: Klausty and 3 guests