Game Development Reference
In-Depth Information
Figure 9.4 Once you've
defined the settings for your
video, click Start Queue to
begin encoding.
deliver the highest possible quality) from the Bitrate Encoding
drop-down. Set the Target Bitrate to 0.5 (or 500 kbps) and the Max-
imum Bitrate to 0.75 (or 750 kbps). Since this clip has a lot of
motion in certain parts, we want the encoder to be more generous
with those frames but more conservative with others. Next, select
the Audio tab. From the Bitrate Settings drop-down, select 96 kbps.
This will compress the audio cleanly and still provide ample quality
for our needs. At this point the encoder is estimating the file size at
right about 1 MB, as you can see to the left of the Cancel button. If
you were encoding several videos, you could save these settings as
a preset in the upper-right quadrant of the panel. For your pur-
poses, just click OK and return to the main screen. With your video
ready to encode, click Start Queue.
Besides the original MOV file, you will end up with an approxi-
mately 1-MB F4V file. At approximately 15 seconds in length, this is
probably a little large still for people on slower connections, so you
'
ll
want to take your audience into account when encoding. Now let
'
s
write some code to play what you
'
ve just encoded.
CutsceneManager
I typically create a class to manage cutscenes that can sit on top of
the gameplay and easily be called to play transition videos, so we
ll
set one up. There are a couple of reasons for using a custom class,
first of which is the fact that just setting up and loading a video in
'
Search Nedrilad ::




Custom Search