Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / How Do Video Formats Manage to Pack So Many Frames In A Small File?

Author
Message
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 22nd Sep 2011 07:16
I have never been able to figure out how video formats pack a huge number of frames into a relatively small file. My guess (and im sure it's wrong) is that every frame is simply just a collection of data sets, one for each pixel that changes from the previous frame, and describes how it changes. I know it all depends on the format, but how is it done? Thanks!

Should i add 3D capability to my console? Please go to my Basic Binary Box thread and tell me!
charger bandit
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location: Slovenia
Posted: 22nd Sep 2011 07:21
Each information about the image,that multiplies is stored in a different way for example: aaaa bb will be 4a2b,very simmilar to picture compression. Also reduced colours and pixel size help with the size.


Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 22nd Sep 2011 08:05
Oh i see! So a video with completely randomly colored pixels wouldnt compress to well?

Should i add 3D capability to my console? Please go to my Basic Binary Box thread and tell me!
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Sep 2011 08:13
It's quite a bit more complex than you'd think: http://en.wikipedia.org/wiki/JPEG#JPEG_codec_example



Support a charitable indie game project!
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 22nd Sep 2011 08:40
I apologize if im wrong as i have no time to look at the link now but JPEG is image only, right?

Should i add 3D capability to my console? Please go to my Basic Binary Box thread and tell me!
ionstream
20
Years of Service
User Offline
Joined: 4th Jul 2004
Location: Overweb
Posted: 22nd Sep 2011 10:45
JPEG compression is a good overview of how all lossless compression is done. It is indeed complicated. It compresses the image in the frequency domain using a kind of Fourier transform, then gives the most bits to the frequencies that have the most effect on the image signal. Those bits are then encoded using huffman and RLE. Additionally, the encoder will give more bits to chrominance than lumincance, and various other details like that. For movies, macroblocks are considered, which are smaller squares of images in each frame of the movie. Motion is detected for these images, so only new macroblocks are generated for the ones that change.

Granted actual implementation is much, much more detailed and complicated than this.

bitJericho
22
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 22nd Sep 2011 12:06
Quote: "lossless compression "


You mean lossful.


Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 23rd Sep 2011 01:16
Hahah i see! Thank you!

Should i add 3D capability to my console? Please go to my Basic Binary Box thread and tell me!

Login to post a reply

Server time is: 2025-05-15 07:20:11
Your offset time is: 2025-05-15 07:20:11