PDA

View Full Version : dvd encoding math


mousemurder
27th May 2009, 20:00
hi i am just wondering about this:

width = 720
hight = 480
depth = 65,536 (2^16) bits
frame-size = w x h x d:
frame-size = 22,649,241,600 bits

fps = 30
seconds-total = 7,200 (2 hours)
frame-total = 216,000

bps = frame-size x fps:
bps = 679,477,248,000
size = bps x seconds-total:
size = 4,892,236,185,600,000 (611,529,523,200,000 bytes)

which is well beyond the size limitation of a duel layered dvd (less than 10 gigs)

so my math seems wrong; anyone know how to correct ?

J_Darnley
27th May 2009, 20:39
1 - DVDs are most often YV12 which is 12 bits/pixel
2 - DVDs are compressed with MPEG-2

The raw video would be ~124 Mbit/s

mousemurder
27th May 2009, 23:52
1 - DVDs are most often YV12 which is 12 bits/pixel
2 - DVDs are compressed with MPEG-2

The raw video would be ~124 Mbit/s
thanks,
does that mean there are only 4096 color possibilities for each pixel (seems like it should be more).

with 12 bits per pixel i get 42,467,328,000 bps

still much higher than what you estimated for raw video.

J_Darnley
28th May 2009, 00:02
thanks,
does that mean there are only 4096 color possibilities for each pixel (seems like it should be more).

with 12 bits per pixel i get 42,467,328,000 bps

still much higher than what you estimated for raw video.
No, there are still 2^24 different colours possible with YCbCr colourspace, but YV12 has one chroma sample for four luma samples. Search for a more detailed explaination.

720 * 480 * 12 * 30 = 124416000 bit/s
720 by 480 pixels
12 bits/pixel
30 frames/s

mousemurder
28th May 2009, 01:03
^ thanks, that puts things into better perspective.

i was multiplying each frame by the total number of possible colors as opposed to the number of bits per pixels.