|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Site Menu
Home
The Scheifele NFL Index
Sudoku Buster
The Million Monkeys Internet Search Engine™
Descent Demos
Descent 2 Demos
Internet Pinochle
DVD Authoring
Contact Me
What's New?
(Actually, my site is really, really, green.) Last Update: 2008-Dec-31 |
DVD Bit Budgeting
This page is intended to explain the "bit budgeting" aspect of the DVD authoring process. Bit budgeting essentially refers to deciding upon the bitrate to use when encoding the video and audio assets in your project. Compress too much and you could waste precious DVD space or (worse) end up with unnecessarily poor quality video. Compress too little and you could end up re-encoding some or all of your assests because your project won't fit on a DVD. General FormulaHere is the general formula:
Tv (Ra + Rv) + X <= C
Most of the terms in this equation are self-explanatory, but a few merit discussion. Disk CapacityOf course, we know that C is 4.7 GB. But please note that this is measured on a decimal basis (10003), not binary (10243). Thus we are talking about 4,700,000,000 bytes (4.7 x 1000 x 1000 x 1000), which corresponds to 4.377 GB in binary terms (4,700,000,000 / (1024)3). Audio BitrateMany DVD authoring tools support only uncompressed PCM audio, but the collection of applications that support Dolby Digital™ compression is quickly growing. This document will address both types of audio. Let's start with uncompressed PCM audio, since it's simpler. It has a fixed rate of 192,000 bytes per second [(48,000 samples/sec) x (16 bits/sample) x (1 byte/8 bits) x (2 channels)]. Dolby Digital™ (or DD, sometimes called AC-3) is a compressed format and hence leaves more room on your DVD for (1) longer-running video, (2) higher-quality video, or (3) a combination of both. A common bitrate for stereo, DD-encoded audio is 192,000 bits per second. That may seem similar to the PCM rate, but notice that it is in bits (not bytes) per second. Converting units yields just [(192,000 bits/sec) x (1 byte/8 bits)] 24,000 bytes per second. This represents, not surprisingly, a compression ratio of 8:1. Surround-sound (5.1) audio is usually encoded at 384 kbps or higher, but we will concentrate on stereo audio in this document. At any rate, you can see that Dolby Digital™ can save you a lot of space. If your authoring app' supports it, I highly recommend that you use it. Video BitrateIt is worth mentioning that video bitrate is normally discussed in decimal terms as well. So, 4 Mb/sec video represents 4,000,000 bits per second. An ExampleNow, let's consider an example. How much video encoded at 6 Mb/sec with PCM audio will fit on a DVD-R? First, let's solve for Tv.
Tv = C / (Ra + Rv)
We have Rv = 750,000 [(6,000,000 bits/sec) x (1 byte/8 bits)], and we know the values of C and Ra. Thus:
Tv = 4,700,000,000 / (192,000 + 750,000) = (4989.4 sec)(1 min/60 sec) = 83.16 min.
So, we can fit approximately 83 minutes of 6 Mb/sec video with PCM audio on a single DVD-R. How much additional video could we fit if we had used Dolby Digital™ at 192 kpbs? The only part of the equation that changes is that Ra becomes 24,000:
Tv = 4,700,000,000 / (24,000 + 750,000) = (6072.4 sec)(1 min/60 sec) = 101.2 min.
So, using Dolby Digital™ would allow us to include an additional 18 minutes of video. Common Bitrates and Running TimesHere are a couple of tables that show common running times and bitrates. The first table assumes a fixed running time and shows the maximum video bitrate for both PCM audio and 192 kbps-Dolby Digital™ audio. The second assumes a fixed video bitrate and shows the associated maximum running times.
Calculator
I used to have a calculator here.
Well, things change. After starting my own company
(The Shy Flea Corporation, which owns and operates
Electronics Buffet),
I left a place I had worked for 20 years (Princeton Consultants).
Although PCI's owner is a great guy, I couldn't, in good conscience, ask him to continue to host my personal
web server on his premises using his bandwidth. So, Scheif.net is now commercially hosted
(still on Apache I recommend that you use the calculator at VideoHelp.com, which is more feature-rich than mine ever was. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| © Copyright 2009 Fred W. Scheifele | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||