InDesign_Video.pdf

(4191 KB) Pobierz
Lights,
Camera,
Action!
What you need to
know to place video in
InDesign for PDFs, SWFs,
ePUBS, and iPad apps.
By steve Werner
L et’s say you’re trying to learn
While you may not think of inDesign as a
video tool, you’ve actually been able to place
video into inDesign since Cs2. With inDesign
Cs5 and 5.5, you can output video-enhanced
inDesign iles as Flash-based PDFs, sWFs,
ePuBs, and even android and iPad apps.
a complicated cooking technique.
Would you rather read about it, see
a diagram of it, or watch an expert dem-
onstrate it in a video? Most people would
choose the latter.
INDESIGN MAGAZINE 44
october | november 2011 excerpt
1
1101593380.108.png 1101593380.119.png 1101593380.130.png 1101593380.141.png 1101593380.001.png 1101593380.012.png 1101593380.023.png 1101593380.034.png 1101593380.045.png 1101593380.056.png 1101593380.064.png 1101593380.065.png 1101593380.066.png 1101593380.067.png 1101593380.068.png 1101593380.069.png 1101593380.070.png 1101593380.071.png 1101593380.072.png 1101593380.073.png 1101593380.074.png 1101593380.075.png 1101593380.076.png 1101593380.077.png 1101593380.078.png 1101593380.079.png 1101593380.080.png 1101593380.081.png 1101593380.082.png 1101593380.083.png
Video Terminology
Video has its own terminology. Here’s a
quick glossary:
But just because inDesign lets you do
pick a video ile from your desktop doesn’t
mean it’s the right format or the right size.
in this article, i’ll explore your options, make
recommendations, and show you how to set
up your inDesign document properly when
working with video iles. since inDesign Cs5
and 5.5 added more video capabilities, i’ll
focus on those versions of the app.
Frame rate: The number of frames
that appear each second (measured
in frames per second, or fps). Higher
frame rates—up to 60 fps in this
menu—play more smoothly but require
more bandwidth and ile size.
Data rate (bitrate): The amount of
information, or detail, that is stored
per unit of time of a video. The data
rate depends on sampling frequency,
the encoding scheme, and compres-
sion algorithms. It is measured in Mbps
(megabits per second) or, smaller and
more commonly, kbps (kilobits per
second). Choosing higher data rates
will create video of higher quality but
also larger size and longer transmission
time.
Figure 1: legacy Format Warning
Choosing The Best Video Format
Prior to Cs5, inDesign only supported what
are now called legacy formats: legacy-
encoded Quicktime (.mov), aVi (.avi), and
MPeg (.mpeg). you can still use these for-
mats in interactive PDF iles, but you’ll see
a warning dialog when you place them
( Figure 1 ), and viewers of your PDF must
have Quicktime 6.0 or later installed to play
those formats.
Better formats to use are either Flash-
based video—FlV (.lv) or F4V (.f4v)—
or H.264 encoded video—including
MP4 (.mp4), M4V (.m4v) and, somewhat
confusingly, H.264-encoded Quicktime
(.mov). (Quicktime is a container format
than can include diferent encodings.)
adobe reader 9 or higher and acrobat 9 or
higher play these formats using an embed-
ded copy of Flash Player, so playback is
identical on diferent computer platforms.
Because of the rapid ascent of the iPad—
which doesn’t support the FlV or F4V for-
mats—as well as other tablets and smart-
phones, i recommend the H.264-encoded
video formats; that is, MP4 or M4V.
Key frames: Complete video frames
(or images) that are inserted at a con-
sistent interval in a video clip. If you
use Adobe Media Encoder, it automati-
cally determines the key frame interval
based on the frame rate.
Aspect ratio: The ratio of the width of
an image to its height. The most com-
mon ratios are 4:3 (standard television)
and 16:9 (widescreen and high-
deinition television).
INDESIGN MAGAZINE 44
october | november 2011 excerpt
2
1101593380.084.png 1101593380.085.png 1101593380.086.png 1101593380.087.png 1101593380.088.png 1101593380.089.png 1101593380.090.png 1101593380.091.png 1101593380.092.png 1101593380.093.png 1101593380.094.png 1101593380.095.png 1101593380.096.png 1101593380.097.png 1101593380.098.png 1101593380.099.png 1101593380.100.png 1101593380.101.png 1101593380.102.png 1101593380.103.png 1101593380.104.png 1101593380.105.png 1101593380.106.png 1101593380.107.png 1101593380.109.png 1101593380.110.png 1101593380.111.png 1101593380.112.png 1101593380.113.png 1101593380.114.png 1101593380.115.png
Creating Video With The Proper Size
Video ile sizes are far larger than audio,
images, and text. For most digital publishing
projects—especially those targeted at mobile
devices—it’s crucial to keep video clips to a
reasonably small ile size. to reduce ile size,
try these tips:
»
too large for an ePuB ile where the overall
ile size is more constrained.
»
adjust your compression settings by
choosing from the presets in adobe Media
encoder (see the next section). i don’t rec-
ommend manual settings unless you’re a
video professional.
Make your clips as short as possible, trim-
ming whatever isn’t essential.
Using Adobe Media Encoder
To Convert Video
adobe Media encoder is a stand-alone video
encoding application that lets you encode audio
and video in a variety of formats. it can convert
legacy video formats to Flash video and H.264
video formats. you can also choose presets for
diferent media output that allow you to choose
diferent aspect ratios and data rate settings.
Media encoder comes with adobe
Creative suite Design Premium, Web
Premium, and Production Premium. if you
don’t have the Media encoder, a Web search
will yield many other media conversion appli-
cations, many of them free. to convert your
»
avoid rapid movement in the video. Video
compression is partly achieved by compar-
ing the pixels in subsequent video frames.
rapid camera movements mean the pixels
change a lot from frame to frame, so less
compression is possible.)
Figure 2: adobe Media video clip. Click to play the movie.
video, take these steps:
open adobe Media encoder 5 or 5.5. you’ll
see a single window ( Figure 2 , click to play
video clip). in the top Queue section, click
the + button to add the ile you want to
encode (for example, a legacy Quicktime
ile). or, even easier, just drag the ile into
the large central area.
Choose the video format you’re aiming
for from the Format menu—in this ex-
ample, H.264. Click the Preset menu to
select a preset that best represents your
»
Make the video dimensions appropriate for
the device that will display it. For example,
for a tablet with a 4:3 aspect ratio, a com-
mon size is 400 × 300 pixels. For a 16:9
aspect ratio, a common size is 640 × 360
pixels. For full-screen videos in an adobe
Digital Publishing suite project, make the
width 1024 pixels. But this would likely be
INDESIGN MAGAZINE 44
october | november 2011 excerpt
3
1101593380.116.png 1101593380.117.png 1101593380.118.png 1101593380.120.png 1101593380.121.png 1101593380.122.png 1101593380.123.png 1101593380.124.png 1101593380.125.png 1101593380.126.png 1101593380.127.png 1101593380.128.png 1101593380.129.png 1101593380.131.png 1101593380.132.png 1101593380.133.png 1101593380.134.png 1101593380.135.png 1101593380.136.png 1101593380.137.png 1101593380.138.png 1101593380.139.png 1101593380.140.png 1101593380.142.png 1101593380.143.png 1101593380.144.png 1101593380.145.png 1101593380.146.png 1101593380.147.png
Figure 4: Media
Panel in inDesign
Cs5 and 5.5
target output; for example, the apple
iPad. if you’re not showing a video full-
screen, you may choose a video aspect
ratio that’s diferent from the device’s
aspect ratio. you might keep the ratio
of the video source ile to avoid a “let-
terbox” efect (black bars on the sides
of the frame). some outputs have more
than one aspect ratio or data rate setting
for the same device, so try out diferent
settings to see which produces the best
result at the lowest ile size.
Click the start Queue button to create a
new, usually smaller, video ile.
Figure 2 shows me selecting a high-data-
rate, legacy-encoded video that is 8 seconds
long. its original data rate is 21.57 Mbps and
it has a 22 MB ile size. after re-encoding to
H.264 at 400 × 224 pixels and a data rate of
800 kpbs, its ile size drops to 852 KB. the
frame rate was unchanged at 29.97 frames
per second. For more technical details on
bit rate and fps changes ile size, see the
additional resources sidebar.
For more control over the encoding, right-
click the source ile name and choose ex-
port settings. this opens the export set-
tings dialog where you can tweak a variety
of video settings ( Figure 3 ).
Choose File > Place , or click the Place a
Video or audio File button at the bottom of
the Media panel ( Window > Interactive >
Media ). either way, it’s best to just click or
drag the Place icon to create the media frame
(rather than place it inside an existing frame)
so the video doesn’t appear cropped. Make
sure the center of the video, at least, is on the
page, or it won’t export.
you control video play in three inDesign
panels: the Media panel, the Buttons panel,
and the Preview panel. the Media Panel
( Figure 4 ) lets you set options for how your
video will play once you’ve output your
Figure 3: Media encoder export settings.
Placing and Controlling
Video Play in InDesign
you can place a video or audio ile into your
inDesign document in one of two ways:
INDESIGN MAGAZINE 44
october | november 2011 excerpt
4
1101593380.148.png 1101593380.149.png 1101593380.150.png 1101593380.151.png 1101593380.002.png 1101593380.003.png 1101593380.004.png 1101593380.005.png 1101593380.006.png 1101593380.007.png 1101593380.008.png 1101593380.009.png 1101593380.010.png 1101593380.011.png 1101593380.013.png 1101593380.014.png 1101593380.015.png 1101593380.016.png 1101593380.017.png 1101593380.018.png 1101593380.019.png 1101593380.020.png 1101593380.021.png 1101593380.022.png 1101593380.024.png 1101593380.025.png 1101593380.026.png 1101593380.027.png 1101593380.028.png 1101593380.029.png
Navigation Points
For interactive PDF or SWF iles, you
can create navigation points in a video
ile and use buttons to start the video at
a particular frame.
project. it also lets you preview a video
with the scrubber control located under
the video preview. some controls are
output-dependent:
» Most Media panel controls work when
exported to interactive PDF and sWF iles.
However, the loop feature is supported in
sWF export only.
» Media panel settings won’t afect video
placed in ePuB iles.
» For adobe Digital Publishing suite proj-
ects, additional video controls are on the
overlay Creator panel. overlay Creator set-
tings override Media panel settings.
Playing Video: Clicking on a video in
an interactive PDF or sWF ile prompts it to
play. you can also create buttons that con-
trol video play ( Figure 5 ). With the Button
panel, you can set Video actions to Play,
stop, Pause, resume, Play from navigation
Point, or stop all (the latter is sWF only).
Caveat: Buttons don’t work in ePuB iles. a
user must tap a movie to make it play.
1. Place the video in your InDesign docu-
ment, and view it in the Media panel.
2. Use the scrubber control on the Media
panel to advance to the irst point you
want to mark.
3. Click the + button under Navigation Points.
The time code of the point appears and a
ield initially called Point 1 appears. Edit
the name to something meaningful.
4. Repeat steps 2 and 3 to create more navi-
gation points.
5. Create a button using the Buttons panel
for each navigation point.
6. For each button, choose the Video action.
Select the video name. In the Options
menu, select Play from Navigation Point.
Select the name of the navigation point
that the button will trigger.
Figure 5: Play Video Button.
to start a video as soon as a page is
loaded, check Play on Page load on the
Media panel. in sWF output only, the video
can be repeated by checking loop.
to begin a video at a frame other than the
irst one, create navigation points that can be
triggered by a button. (see the “navigation
Points” sidebar to the right.)
7. There’s no way to set a navigation point
as a stopping point. The viewer will need
to use the Stop or Pause controls on the
Controller.
INDESIGN MAGAZINE 44
october | november 2011 excerpt
5
1101593380.030.png 1101593380.031.png 1101593380.032.png 1101593380.033.png 1101593380.035.png 1101593380.036.png 1101593380.037.png 1101593380.038.png 1101593380.039.png 1101593380.040.png 1101593380.041.png 1101593380.042.png 1101593380.043.png 1101593380.044.png 1101593380.046.png 1101593380.047.png 1101593380.048.png 1101593380.049.png 1101593380.050.png 1101593380.051.png 1101593380.052.png 1101593380.053.png 1101593380.054.png 1101593380.055.png 1101593380.057.png 1101593380.058.png 1101593380.059.png 1101593380.060.png 1101593380.061.png 1101593380.062.png 1101593380.063.png
Zgłoś jeśli naruszono regulamin