Wednesday, March 31, 2010

Setting MPEG settings


I like the MPEG format because it is easy to use and — most importantly —widely supported among Mac and PC users. MPEG is actually a family of multimedia file standards. There are currently four MPEG standards:
  • MPEG-1: This is the oldest version of the standard. A drawback of MPEG-1 is that it has a maximum picture size of 352 by 240 pixels.
  • MPEG-2: This standard offers much higher video quality and full-size video. In fact, MPEG-2 is the format used by DVD movies, so if you burn your movies onto DVD, this is the format you’ll use. MPEG-2 files require special MPEG-2 player software, such as a DVD player program.
  • MPEG-3: Usually abbreviated MP3, this file format only contains audio and is a popular file format for music files today.
  • MPEG-4: This newer standard is a cross of MPEG video and Apple QuickTime to produce video with very, very small file sizes. Support for this format is still limited. Studio’s MPEG settings dialog box is a lot simpler than the AVI settings. Review the following settings as you get ready to export your movie in MPEG format:
  • Presets: Studio provides a selection of presets based on how the file will be used. For example, if you plan to record the movie on a VCD, choose the VideoCD preset from the Presets menu.
If possible, I recommend that you stick with one of the presets, but if you absolutely must fiddle with the rest of the MPEG settings, choose Custom from the Presets menu. If you use one of the presets, you can simply click OK to close the Setup Options dialog box. Additional settings can only be adjusted if you choose Custom.
  • Include video: You’ll want to leave this option checked unless you only want to generate an audio file.
  • Filter video: If you’re working with a smaller frame size, check this option to smooth the appearance of the video image.
  • Draft mode: Check this option if you just want to quickly produce a low-quality file for previewing purposes.
  • Compression: Choose MPEG1 or MPEG2. Again, MPEG-2 can provide higher quality, but it requires special player software. MPEG-2 is used on movie DVDs.
  • Width and height: Select a frame size for your video image here. Smaller frame sizes mean smaller files.
  • Data rate: Most of the time you can leave these sliders alone, but you can use them to fine-tune the quality and file size.
The slider on the left controls video data rate, and the slider on the right controls audio data rate. The Make MPEG File tab of the Setup Options dialog box also includes a couple of audio settings. Audio options are
  • Include audio: Uncheck this option if you only want to output video.
  • Sample rate: 44.1 kHz is CD quality, but most digital camcorders can record at 48 kHz. The higher the sample rate, the higher the audio quality (and file size).
  • Data Rate: Use this slider to fine-tune the quality of the audio. Slide it left to reduce quality and file size, or slide it right to increase quality and file size. As you adjust the slider, you see the number in the Kbits/sec box change. Generally I recommend leaving the Data Rate slider alone unless you really need to squeeze a couple more kilobytes of file size out of your movie file.

Sunday, February 28, 2010

Decoding codecs


Digital video contains a lot of data. If you were to copy uncompressed digital video onto your hard disk, it would consume 20 MB (megabytes) for every second of video. Simple arithmetic tells us that one minute of uncompressed video would use over 1GB. Even with a 60GB hard drive, you would have room for only about 50 minutes of uncompressed video, assuming that big drive was empty to begin with. Dire though this may seem, storage isn’t even the biggest problem with uncompressed video. Typical hard drive busses and other components in your computer simply can’t handle a transfer rate of 20MB per second, meaning that some video frames will be dropped from the video.
To deal with the massive bandwidth requirements of video, digital video is compressed using compression schemes called codecs (compressor/decompressor). The DV codec, which is used by most digital camcorders, compresses video down to 3.6MB per second. This data rate is far more manageable than uncompressed video, and most modern computer hardware can handle it without trouble. When you capture DV video from a camcorder using a FireWire interface, a minute of video consumes just over 200MB of hard disk space. Again, most modern computers can manage that. Why do codecs matter to you? When you choose a file format for exporting your movie, you’re also usually choosing a codec to compress your movie (whether you realize it or not). Usually your export software automatically chooses a codec for you, but as you’ve seen in this chapter, you can also usually choose a specific codec if you wish. Some codecs compress video more than others. Generally speaking, the more video is compressed, the more quality you lose. In most cases I recommend you use the default codec chosen by Studio (or whatever program you are using) when you select an export format.

Choosing AVI Settings in Pinnacle Studio

The AVI format was developed several eons ago by Microsoft as the file format of Video for Windows video files. AVI files can use one of several codecs to compress video. Codecs control exactly how the audio and video is compressed. As you can see in Figure, Studio’s Setup Options dialog box makes it pretty easy to choose a codec or modify other settings.
The video settings include
  • Include Video in AVI File: I’m guessing you’ll want to leave this option checked for 99.9975% of all your projects. If you uncheck this option, only audio will be included in the file.
  • List All Codecs: I recommend you leave this option unchecked. Many multimedia programs install codecs on your computer, and if you check the “List all codecs” option, each and every codec installed on your PC will appear in the list, even ones that aren’t compatible with Studio.
  • Options: Some codecs have further options you can adjust. I generally recommend that you don’t mess with these options.
  • Compression: This menu allows you to choose a codec. Many multimedia programs install codecs on your computer, so the list of codecs may vary depending on what is installed on your computer. The Cinepak codec (which comes with Studio) is pretty good for all around use, and is particularly recommended for movies that will be recorded onto a CD.
  • Width and Height: These indicate the size of your video image in pixels. Full-size DV-format video is 720 by 480 pixels. Reducing the size of the picture can greatly reduce the file size, but make sure you keep the ratio between the height and width the same, or your video image may look distorted.
  • Frames/Second: This controls the frame rate of the video file. Full-quality DV-format video uses a frame rate of 29.97 frames per second (fps). Reducing the frame rate decreases playback quality, but it also greatly reduces file size.
  • Quality or Data Rate: This slider control isn’t available with all codecs, but when it is available, it allows you to adjust the quality up or down to control file size. A smaller data rate greatly reduces file size.

Exporting Your Movie to an AVI or MPEG with Pinnacle Studio

If you’re using Apple iMovie, QuickTime is the only file format available for export. If you’re using Pinnacle Studio, you have more options. To export your movie to an AVI or MPEG file:
  1. In Studio, choose View➪Make Movie. The Make Movie screen appears.
  2. Click either AVI or MPEG on the left side of the Make Movie window. Choose the format to which you want to export. Generally speaking, AVI (Audio Video Interleave) files are a little bigger than MPEG (Moving Picture Experts Group) files. Anyone with a semi-modern Windows PC should be able to view either format. Another benefit of choosing MPEG is that Macs can usually open them, whereas AVI files are usually not Mac-compatible.
  3. Click the Settings button. The Pinnacle Studio Setup Options dialog box appears, as shown in Figure. If you chose AVI in Step 2, the Make AVI File tab will be in front. If you chose MPEG in Step 2, the Make MPEG File tab will be in front.
  4. Adjust settings and click OK. I’ll describe the various AVI and MPEG export settings in the following two sections.
  5. Review the estimated file size above the Settings button in the Make Movie window. The estimated file size is just that — an estimate. It’s usually pretty close to what the final file size will be, but seldom exact. If the file seems too big, adjust settings so that the video picture is smaller or the audio quality is lower.
  6. Click Create AVI File or Create MPEG file to create your movie.
  7. In the dialog box that appears, choose a folder in which to save your movie, and give it a filename.
  8. Click OK.
The export process will probably take a few seconds or even minutes, depending on the length of your movie and the number of effects. One reason you might want to export a movie as an AVI or MPEG file is if you plan to edit it using other software. For example, if I want to export a movie for the Web in Windows Media Video (WMV) format, I prefer to use the export feature in Windows Movie Maker. When I’m done editing in Studio, I export the movie in AVI format, which can be easily imported into Movie Maker. After the AVI file is imported into Windows Movie Maker, I use that program to export a WMV file.
AVI is a good format to use if you want to export video for many Windowsbased video-editing programs, including Windows Movie Maker or Adobe Premiere for Windows, but you may find that some editing programs prefer MPEG. Pinnacle’s Hollywood FX Pro, for example, works better with MPEGformat video. And of course, if you plan to use the exported file on a Mac, you’ll find that the MPEG format will be much more compatible with Mac multimedia software.
If you aren’t sure whether you have a specific need for one format or the other, it probably doesn’t matter very much which one you choose. AVI files are usually a little bigger than MPEG files, but as I said earlier, if you’re concerned about file sizes — say, for example, you plan to share the movie on the Internet — you really ought to be exporting the movie in a Web-friendly format like RealVideo or Windows Media.

Sunday, January 31, 2010

Exporting a Movie


After about the millionth preview, you’ll probably come to the realization that your movie will never be perfect: If you don’t just give up and release your movie, it will never be seen by anyone. Star Wars creator George Lucas once described this process as one of abandonment because most moviemakers almost never feel that a project is truly finished. When you decide that it’s time to “abandon” your project, you must export the movie so that others can view it. Before you export your movie, you must decide in which format you wish to export. After you’ve edited your movie in a program like Studio or iMovie, you aren’t limited to showing your work to others on your computer. You have many options with which to share your movie:
  • Videotape: Almost everyone you know probably has a VCR that plays VHS tapes. Sure, the quality and gee-whiz factor of VHS tapes isn’t as high as DVD, but most of your audience really won’t care. If you have an analog capture card such as a Pinnacle AV/DV board, you can connect a VCR directly to your computer and export your movie directly to a VHS tape. Otherwise export the movie back to a tape in your digital camcorder, and then dub the movie from the camcorder tape to a VCR
  • DVD: The DVD (Digital Versatile Disc) player is quickly supplanting the VCR as the home video player of choice for many people. Tens of millions of households already have DVD players in their home entertainment systems, and many modern computers can play DVD movies as well. DVD recorders are now relatively affordable, so making your own DVDs is pretty easy..
  • VCD/S-VCD: If you don’t have a DVD burner yet, you can make DVD-like movie discs called VCDs (Video Compact Discs) or S-VCDs (Super VCDs) using a regular CD-R drive and blank CDs. VCDs can hold about one hour of video, and S-VCDs hold 20 minutes of higher quality video. VCDs and S-VCDs can be played in most DVD players.
  • Internet: The Internet is a popular place to share video, but remember that video files are usually very big and most people still have relatively slow Internet connections. If you plan to export your movie for use on the Internet, use a Web-friendly format such as Apple QuickTime, RealNetworks RealVideo, or Windows Media Video. These formats usually have fairly low quality, but the trade-off is much smaller file sizes. When choosing one of these formats, make sure that your intended audience has software that can play your movies.
  • Video file: Some programs allow you to simply save the movie as a file. Common video file formats include AVI and MPEG. These files can be stored on your computer, or burned onto a CD so that others can watch your movie on their computers as well. Just remember that the AVI and MPEG formats are generally too big for anyone but broadband users to access online. AVI or MPEG files are useful, however, if you plan to edit the movie further using another editing program.

Previewing on an external monitor

Your editing software has a preview window, and at first glance it probably seems to work well enough. But if you plan to record your movie on videotape or DVD, just previewing it on the computer screen can cause a couple of problems:
  • TVs usually provide a bigger view. A larger TV screen reveals camera movements and other flaws that might not be obvious in the tiny preview window on your computer screen.
  • Computer monitors and TVs show color differently. Colors that look right on your computer may not look the same on a TV.
  • Most TVs are interlaced. TVs are usually interlaced, whereas computer monitors are progressively scanned, or non-interlaced. Titles or other graphics that have very thin lines may look fine on your computer monitor, but when viewed on a TV, those thin lines may flicker or appear to shimmer or crawl.
The cheapest option is to connect your digital camcorder to your FireWire port, and then connect the TV to the analog output on your camcorder. If you have an analog capture card in your computer, such as the Pinnacle AV/DV board, you can connect your TV (and VCR) to the analog outputs for the card.
Apple iMovie makes previewing your work on an external TV monitor very easy. In iMovie, choose iMovie ➪ Preferences. The iMovie Preferences dialog box appears as shown in Figure. Place a check mark next to Play Video Through to Camera under Advanced options. Now that this option is enabled, whenever you play the timeline, the video will be sent out to your camcorder if it is connected to your FireWire port and turned on in Player or VTR mode. If you have a TV monitor hooked up to the camcorder’s analog outputs, the video image should appear there as well.
Pinnacle Studio also allows you to preview video on an external monitor, although it’s a little more complicated. Basically, you have to export the movie as if you were done and ready to record it on tape. After the movie is exported for tape, you can play the export file and preview it on an external monitor as many times as you like without actually recording the tape.

Casting a critical eye on your project


Of course, there’s more to previewing your project than simply clicking Play. Consider carefully what you are actually previewing when you play your movie. Here are some ways to get the most out of previewing your project:
  • Watch the whole program from start to finish. You may be tempted to periodically stop playback, reverse, and repeat sections, or perhaps even make tweaks to the project as you run it. This is fine, but to get a Click to play a movie fullscreen. really good “feeling” for the flow of the movie, watch the whole thing start to finish — just as your audience will. Keep a notepad handy and jot down quick notes if you must.
  • Watch the program on an external TV. If you plan to record your movie on videotape or DVD, previewing on an external monitor is very helpful. (See the next section in this chapter for a more detailed explanation.)
  • Have trusted third parties review the project. Moviemakers and writers are often too close to their creations to be totally objective; an “outside” point of view can help a lot. Although I worked hard to write this book (for example), my work was reviewed by various editors and their feedback was invaluable. Movie projects benefit from a similar review process. Even if you want to maintain strict creative control over your project, feedback from people who were not involved with creating it can help you see it afresh.