|
SYS-CON.TV Webcasts
Comments
Did you read today's front page stories & breaking news?
SYS-CON.TV
|
Top Links You Must Click On
Flash Best Practices for Encoding Video with the VP6 Codec
A simple yet powerful tool for Flash developers
Mar. 31, 2006 04:00 PM
Flash Video is rapidly changing the landscape of video on the web. Developers will need a new set of skills and knowledge relating to video editing, encoding, and delivery. This article introduces the video encoding process using the Flash 8 Video Encoder, a simple yet powerful tool for Flash developers.
A Short History of Video on the Web
Experience with Flash Video The Spark codec brought integrated video to Flash. It marked a tremendous first step and was instantly accepted as a new alternative for web video. Our clients now use it to display television promos, music videos, and educational clips.
The New On2 VP6 Codec and How It Differs
What You Should Know About Video
Frame size (mentioned in the previous section) brings up a number of confusing issues. Most confusing is the concept of square and non-square pixels. Television presents video as horizontal lines. Computers present video as a grid of pixels. Both use a 4 x 3 ratio for standard video playback. The digitized version is referred to as a "square pixel" resolution. Video is often digitized at what's called a D1 resolution, which means 720 x 480 for NTSC and 720 x 576 for PAL. Within the world of the 4 x 3 standard, these are referred to as "non-square pixel" resolutions‹NTSC pixels are wider at a ratio of 1.1:1 or 11/10, while PAL pixels are slightly taller at a ratio of about 0.915:1 or 54/59. So why convert your video to square pixels and take the 720 x 480 frame to 320 x 240 or other legacy format? On one hand, that's the way it's always been done. But there's also no reason to use the non-square pixel dimensions if the encoded file will be played on a computer screen. Since the early days of video, D1 has been the "legal" resolution. However, these are not the resolutions at which the vast majority of people watch video. As I mentioned earlier, television presents video at a 4 x 3 ratio screen size. When computers came along, screen resolutions did the same. Early computer monitor resolutions were 480 x 360 and 640 x 480 pixels; my current favorite is 1280 x 960. Practically speaking, you should use the D1 resolution for videotape and DVD; use a 4 x 3 ratio for computer playback. A standard conversion from D1 to 4 x 3 would begin as follows:
There are times when I want to capture and de-interlace on the fly. In that case, the process would be as follows:
When you compare 720 x 480 and 640 x 480 video side by side on a computer screen, you'll see the most practical answer of all as to why you want to make the conversion: "That one looks stretched out!"
Working with the Flash 8 Video Encoder When you launch the Flash 8 Video Encoder (Figure 1), you are presented with a simple interface. You can add content to the encoding queue by clicking the Add button or by dragging content to the queue window. The default setting for encoding is Medium Quality 400 Kbps. If your source is 320 x 240 pixels or less, you may be ready to click the Start Queue button now. These default settings (Figure 2) will give you good-quality VP6 video at the same frame size and frame rate as the source. If you need to change the settings or use more advanced settings (Figure 3), highlight one or more source files and click the Settings button. Tip: If you want to encode the same source with different settings, highlight the source, click the Duplicate button, and then adjust the settings separately for each instance of the source. Within this simple settings dialog box you can set your source to encode to any of the Flash 7 or Flash 8 presets. You can also rename the output file and adjust (or trim) the in/out points for the encoding process. If you need to adjust further, click the Show Advanced Settings button to reveal more encoding options. The Crop and Trim tab gives you advanced options for cropping the frame as well as information on the trim settings. Tip: To avoid any distortion when cropping video, crop according to the ratio of the source. For example, when cropping a 4 x 3 source (240 x 180, 320 x 240, and so on) crop three pixels from the height for every four pixels cropped from the width. For extremely accurate trim settings, click one of the trim tabs on the bottom of the scrubber and use the left and right keypad arrows to adjust the settings. On the Encoding tab you can create a custom setting by making adjustments to the frame rate, keyframe interval, frame size, and the audio or video bit rate. Tip: Never resize larger than the cropped frame size of the source. The most important variable is the amount of movement in the clip. Fast-moving music videos need a higher bit rate. Talking-head videos can be encoded using the lower bit rate settings. Adjust audio settings according to how important the audio is to your project. Music should be in stereo and go higher than 64 Kbps. Speech clips can be in mono and go as low as 16 Kbps.
Where to Go from Here Many of these subjects are covered in the Flash Video Developer Center, and much more information will be coming there. Start with the Flash Video Learning Guide, which introduces Flash Video and provides you with tools to develop your skills. Reader Feedback: Page 1 of 1
Your Feedback
Enterprise Open Source Magazine Latest Stories . . .
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
|
SYS-CON Featured Whitepapers
Most Read This Week |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||