| 1 |
===================== |
| 2 |
The movie15 Package |
| 3 |
===================== |
| 4 |
|
| 5 |
Author: |
| 6 |
|
| 7 |
Alexander Grahn |
| 8 |
|
| 9 |
|
| 10 |
Description: |
| 11 |
|
| 12 |
* |
| 13 |
* Note: |
| 14 |
* This package is obsolete now. Consider using package `media9'. |
| 15 |
* |
| 16 |
|
| 17 |
This package provides an interface to embed movies, sounds and 3D objects |
| 18 |
into PDF documents for use with LaTeX as well as pdfLaTeX. It follows the |
| 19 |
PDF-1.5 and PDF-1.6 specifications for embedding multimedia content. The |
| 20 |
specification allows media file data to be completely incorporated into the |
| 21 |
PDF output, thus producing self-contained PDF documents. A number of file |
| 22 |
formats is supported. For a (possibly incomplete) list see the table at the |
| 23 |
end of this file or refer to the PDF specification: |
| 24 |
|
| 25 |
PDF Reference, fifth edition: |
| 26 |
Adobe Portable Document Format version 1.6, |
| 27 |
Implementation note 144, Appendix H.3, |
| 28 |
|
| 29 |
available somewhere on Adobe's web site (http://www.adobe.com). |
| 30 |
|
| 31 |
Note, this file only gives a summary of usage and available command |
| 32 |
options. Please refer to the documentation `movie15.pdf' in the `doc/' |
| 33 |
directory for details and examples. |
| 34 |
|
| 35 |
Keywords: embed, movie, LaTeX, pdfLaTeX, PDF, 3D, JavaScript, include, |
| 36 |
sound, video, multimedia, animation |
| 37 |
|
| 38 |
|
| 39 |
Usage: |
| 40 |
|
| 41 |
\usepackage[<package options>]{movie15} |
| 42 |
|
| 43 |
Package option `3D' enables the 3D feature from the PDF-1.6 specification. |
| 44 |
With option `draft' media files are not included. Instead, the file name |
| 45 |
is printed in a box of size <width>x(<height>+<depth>). `final' does the |
| 46 |
opposite, overriding a global draft option specified in the \documentclass |
| 47 |
command. |
| 48 |
|
| 49 |
|
| 50 |
\includemovie[<options>]{<width>}{<height>}{<media file>} |
| 51 |
|
| 52 |
<width> and <height> in TeX dimensions, may be left empty, see option `text' |
| 53 |
|
| 54 |
<media file> file name of the media clip |
| 55 |
|
| 56 |
|
| 57 |
\movieref[<options>]{<label spec>}{<text>} |
| 58 |
|
| 59 |
makes <text> a hyperlink to the embedded media file which has been labelled |
| 60 |
with <label spec> using the `label' option of the inclusion command. |
| 61 |
|
| 62 |
Provides a means to control the playback state and properties of the |
| 63 |
referenced media. In 3D context, it can be used to define an additional view |
| 64 |
of the object, to access a particular view from the list of predefined views |
| 65 |
by index or to run a JavaScript. Moreover, links can be created for |
| 66 |
calculating 3D camera settings. |
| 67 |
|
| 68 |
In addition to `play' (default), `stop', `resume', `pause', `close', |
| 69 |
`3Dviewindex', `3Dcalculate' and `3Dgetview' it accepts `controls', `repeat', |
| 70 |
`palindrome', `startat', `endat', `mouse', `rate', `volume', `default', |
| 71 |
`3Dcoo', '3Droll', `3Dc2c', `3Droo', `3Dcaa' and `3Djscript' from the |
| 72 |
subsequent list of command options. |
| 73 |
|
| 74 |
|
| 75 |
Options: |
| 76 |
|
| 77 |
attach[=false] By default, the embedded data stream is re-used as |
| 78 |
embedded file attachment, giving the user the |
| 79 |
opportunity to extract the media file and to save |
| 80 |
it to disk for later playback with an external |
| 81 |
player. Re-use as file attachment can be |
| 82 |
suppressed with `attach=false'. |
| 83 |
|
| 84 |
autoclose Close the media player when the page is closed. |
| 85 |
Use of this option may be necessary for streamed |
| 86 |
media, such as Real Video. |
| 87 |
|
| 88 |
autopause Pause playback when page is closed. |
| 89 |
|
| 90 |
autoplay Start playback when page is opened. Useful for |
| 91 |
side by side movies to be played back |
| 92 |
simultaneously. |
| 93 |
|
| 94 |
autostop Stops playing but keeps the media loaded when the |
| 95 |
page is closed. The media is rewound to its |
| 96 |
beginning or its `startat' position. This option |
| 97 |
is set by default if neither of the options |
| 98 |
`autopause', `autoclose' or `continue' is set. |
| 99 |
|
| 100 |
autoresume Resume previously paused playback when page |
| 101 |
is opened. |
| 102 |
|
| 103 |
continue Continue playback in background on premature page |
| 104 |
change. |
| 105 |
|
| 106 |
controls[=true|false] Display player specific controls. |
| 107 |
|
| 108 |
depth=<depth> Specifies how far the media display area should |
| 109 |
extend below the reference line of the running |
| 110 |
text. Any valid TeX dimension will be accepted. |
| 111 |
|
| 112 |
draft Locally switches to draft mode. |
| 113 |
|
| 114 |
externalviewer Opens and plays the media in an external |
| 115 |
application. |
| 116 |
|
| 117 |
final Locally disables draft mode. |
| 118 |
|
| 119 |
inline[=false] Movie file data are embedded into the PDF output |
| 120 |
by default. Embedding can be suppressed using |
| 121 |
`inline=false'. |
| 122 |
|
| 123 |
label=<label spec> The media is labelled with <label spec> such that |
| 124 |
it can be referenced by the `\movieref' command |
| 125 |
somewhere else in the document. |
| 126 |
|
| 127 |
mimetype=<mimetype> Mime type of media. Must be specified if |
| 128 |
<media file> has a non-standard file name |
| 129 |
extension from which the mimetype cannot be |
| 130 |
guessed. See table `Known file name extensions' |
| 131 |
below. |
| 132 |
|
| 133 |
mouse[=true|false] Enable mouse interaction: Clicking onto the media |
| 134 |
(giving it the focus) pauses the playback while |
| 135 |
clicking outside resumes it. In 3D context this |
| 136 |
option is set to `true' by default, but may be set |
| 137 |
to `false' in order to make the 3D annotation |
| 138 |
non-interactive. |
| 139 |
|
| 140 |
palindrome[=true|false] Play media forward and backward. |
| 141 |
|
| 142 |
playerid=<playerid> Forces a particular media player plug-in to be |
| 143 |
used instead of the default one. Currently, the |
| 144 |
following values are recognised: |
| 145 |
AAPL_QuickTime, MACR_FlashPlayer, RNWK_RealPlayer, |
| 146 |
MSFT_WindowsMediaPlayer, ADBE_MCI (Adobe builtin |
| 147 |
player). |
| 148 |
|
| 149 |
poster The first frame of the movie or the frame at the |
| 150 |
beginning of the movie section specified by the |
| 151 |
`startat' and `endat' options is shown. |
| 152 |
|
| 153 |
poster=<image> Insert still image from file to be shown when |
| 154 |
media is not activated. The file type depends on |
| 155 |
the output driver: PS or EPS when using latex |
| 156 |
together with dvips; PDF, PNG or JPEG when using |
| 157 |
pdflatex. |
| 158 |
|
| 159 |
Deprecated. Use option `text' instead. |
| 160 |
|
| 161 |
See option `text' for a possibility to scale the |
| 162 |
media display area according to the poster image |
| 163 |
dimensions. |
| 164 |
|
| 165 |
rate=<rate> Playback rate (multiple of original speed). |
| 166 |
|
| 167 |
repeat[=<repeats>] Number of repeats. Without argument -> repeat |
| 168 |
forever. |
| 169 |
|
| 170 |
startat=<offset> Start/stop playback at the specified offsets |
| 171 |
endat=<offset> (time, frame, named marker). <offset> syntax: |
| 172 |
|
| 173 |
time:<seconds> |
| 174 |
frame:<frame number> |
| 175 |
marker:<quoted string> |
| 176 |
{marker:<quoted string>, time:<seconds>} |
| 177 |
{marker:<quoted string>, frame:<frame number>} |
| 178 |
|
| 179 |
text=<text> <text> is typeset onto the media display area. |
| 180 |
<text> is centred horizontally and vertically. |
| 181 |
If either or both of the <width> and <height> |
| 182 |
arguments are left empty, any unspecified |
| 183 |
dimension of the media clip is scaled to fit the |
| 184 |
corresponding dimension, i. e. width or height, of |
| 185 |
<text>. Likewise, the depth of the media display |
| 186 |
is adjusted to the depth of <text> if the `depth' |
| 187 |
option has not been given. |
| 188 |
|
| 189 |
This option can be used to scale the media display |
| 190 |
area to the natural or scaled dimensions of the |
| 191 |
poster image, e. g.: |
| 192 |
|
| 193 |
\includemovie[text={\includegraphics[scale=2]{ |
| 194 |
path/to/poster}}]{}{}{path/to/movie} |
| 195 |
|
| 196 |
textoverposter[=false] Set this option to `false' if you wish <text> to |
| 197 |
be obscured by the external poster image (if |
| 198 |
specified). Deprecated. |
| 199 |
|
| 200 |
url Treat <media file> as URL. Sets option `inline' |
| 201 |
to false automatically. |
| 202 |
|
| 203 |
volume=<volume> Percentage of original volume. |
| 204 |
|
| 205 |
3Daac=<angle> This option sets the aperture angle of the camera, |
| 206 |
measured in degrees. Fixed point real numbers |
| 207 |
between 0 and 180 are admissible. A sensible value |
| 208 |
of 30 is pre-set by default. Larger values can be |
| 209 |
used to achieve wide-angle or fish-eye effects. |
| 210 |
|
| 211 |
3Dc2c=<x> <y> <z> Direction vector C2C of arbitrary length, |
| 212 |
originating in the centre of orbit and pointing |
| 213 |
to the virtual camera; cf. option `3Dcoo' for the |
| 214 |
number format of <x> <y> <z>. |
| 215 |
|
| 216 |
3Dcoo=<x> <y> <z> Positional vector COO of the centre of orbit. |
| 217 |
Only fixed point numbers in the range from |
| 218 |
-999999999999999999.999999999999999999 to |
| 219 |
+999999999999999999.999999999999999999 are |
| 220 |
allowed. |
| 221 |
|
| 222 |
3Droll=<roll> Prescribes an initial camera roll around the |
| 223 |
optical axis (in clockwise direction, if <roll> |
| 224 |
is greater than zero); measured in degrees. |
| 225 |
|
| 226 |
3Droo=<r> Radius of orbit ROO of the virtual camera; cf. |
| 227 |
option `3Dcoo' for the number format. |
| 228 |
|
| 229 |
3Dviews=<views file> Further named, predefined views can be set in an |
| 230 |
auxiliary file specified by the 3Dviews option. |
| 231 |
The file <views file> contains lines which obey |
| 232 |
the syntax: |
| 233 |
|
| 234 |
[<name>]{<coo_x> <coo_y> <coo_z>}{<c2c_x> <c2c_y> <c2c_z>}{<roo>}{<roll>}{<aac>} |
| 235 |
|
| 236 |
The <name> entry is optional. For <coo_x>, |
| 237 |
<coo_y>, <coo_z>, <c2c_x>, <c2c_y>, <c2c_z>, <roo> |
| 238 |
and <aac> the same rules as for the corresponding |
| 239 |
options `3Dcoo', `3Dc2c', `3Droo' and `3Daac' |
| 240 |
apply. |
| 241 |
|
| 242 |
3Dbg=<r> <g> <b> This option sets the background colour of the |
| 243 |
canvas. Only fixed point real numbers in the range |
| 244 |
from 0 to 1 are allowed for the colour components. |
| 245 |
|
| 246 |
3Dlights=<lighting scheme> Sets the default lighting scheme. Possible values |
| 247 |
are: `None', `White', `Day', `Night', `Hard', |
| 248 |
`Primary', `Blue', `Red', `Cube', `CAD', |
| 249 |
`HeadLamp'. |
| 250 |
|
| 251 |
3Drender=<render mode> Sets the default render mode. Possible values |
| 252 |
are: `Solid', `SolidWireframe', `Transparent', |
| 253 |
`TransparentWireframe', `BoundingBox', |
| 254 |
`TransparentBoundingBox', |
| 255 |
`TransparentBoundingBoxOutline', `Wireframe', |
| 256 |
`ShadedWireframe', `HiddenWireframe', `Vertices', |
| 257 |
`ShadedVertices', `Illustration', `SolidOutline', |
| 258 |
`ShadedIllustration'. |
| 259 |
|
| 260 |
3Djscript=<JavaScript file> Things like animation, lighting, background |
| 261 |
colour etc. may also be script driven. Option |
| 262 |
`3Djscript' associates a <JavaScript file> with |
| 263 |
the 3D object. The script will be executed upon |
| 264 |
activation of the object. |
| 265 |
|
| 266 |
3Dresource=<resource file 1>[, 3Dresource=<resource file 2> [, ...]] |
| 267 |
|
| 268 |
Embeds additional 3D or rasterized image files for |
| 269 |
use as resources in the 3D annotation. Possible |
| 270 |
file types are U3D, Postscript (LaTeX + dvips) and |
| 271 |
PDF/JPEG/PNG (pdfLaTeX). Embedded resources must |
| 272 |
be loaded by the JavaScript method |
| 273 |
|
| 274 |
Resource("pdf://<resource path>") |
| 275 |
|
| 276 |
where <resource path> stands for the path to the |
| 277 |
resource file as specified by the `3Dresource' |
| 278 |
option. |
| 279 |
|
| 280 |
Additional options for use with `\movieref': |
| 281 |
|
| 282 |
play (Default) Immediately restarts playback. If new |
| 283 |
playback settings have been specified through the |
| 284 |
options given above, they override the original |
| 285 |
settings being in effect during media inclusion. |
| 286 |
|
| 287 |
stop Stops and rewinds the media to its beginning or to |
| 288 |
the `startat' position. |
| 289 |
|
| 290 |
resume Resumes paused media. In fact, this option makes |
| 291 |
the hyperlink a toggle switch: repeated clicking |
| 292 |
switches between paused and resumed state. |
| 293 |
|
| 294 |
pause Has the same effect as option `resume'. Added for |
| 295 |
completeness only. |
| 296 |
|
| 297 |
close Immediately closes the media player. |
| 298 |
|
| 299 |
default Play the media at the original settings which were in |
| 300 |
effect during media inclusion. |
| 301 |
|
| 302 |
3Dviewindex=<index> Opens the first `F', last `L', next `N' or |
| 303 |
previous `P' view from the list of additional |
| 304 |
views, or the one indexed by an integer. `D' gives |
| 305 |
access to the default view. |
| 306 |
|
| 307 |
3Dcalculate[=<aac angle>] Creates a link for calculating `3Droo' and `3Dcoo' |
| 308 |
settings of the virtual camera. The default |
| 309 |
aperture angle of 30 degrees is used for the |
| 310 |
calculation unless an optional <aac angle> has |
| 311 |
been provided. |
| 312 |
|
| 313 |
3Dgetview Camera settings corresponding to the current view |
| 314 |
in the Reader are printed to a dialogue box. The |
| 315 |
output is readily formatted to be inserted into a |
| 316 |
file of predefined views, see option `3Dviews'. |
| 317 |
|
| 318 |
|
| 319 |
Known file name extensions: |
| 320 |
|
| 321 |
Extension MIME type Description |
| 322 |
============================================================================= |
| 323 |
aif, aifc, aiff audio/aiff Audio Interchange File |
| 324 |
Format |
| 325 |
au, snd audio/basic NeXT/Sun Audio Format |
| 326 |
avi video/avi AVI (Audio/Video Inter- |
| 327 |
leaved) |
| 328 |
gif image/gif (animated) GIF |
| 329 |
mid, rmi audio/midi MIDI (Musical Instrument |
| 330 |
Digital Interface) |
| 331 |
mov, qt video/quicktime Apple QuickTime |
| 332 |
mp3, m3u audio/x-mp3 MPEG Audio Layer-3 |
| 333 |
mp4 video/mp4 MPEG-4 Video/Audio |
| 334 |
mpeg, mpg video/mpeg MPEG-1 & 2 Video |
| 335 |
ra audio/vnd.rn-realaudio Real Audio |
| 336 |
rm, rv application/vnd.rn-realmedia Real Media (video & sound) |
| 337 |
smil application/smil Synchronized Multimedia |
| 338 |
Integration Language |
| 339 |
swf application/x-shockwave-flash (Adobe?) Macromedia Flash |
| 340 |
u3d model/u3d Universal 3D File Format |
| 341 |
wav audio/wav MS Audio Format |
| 342 |
wma audio/x-ms-wma Windows Media Audio Format |
| 343 |
wmv video/x-ms-wmv Windows Media Video Format |
| 344 |
|
| 345 |
|
| 346 |
Requirements: |
| 347 |
|
| 348 |
package `fp', if option `3D' is selected |
| 349 |
|
| 350 |
pdfTeX, version >= 1.20 needed for PDF output |
| 351 |
|
| 352 |
Adobe Reader, version >=6 for playing movies/sound, |
| 353 |
Adobe Reader, version >=7 for 3D objects |
| 354 |
|
| 355 |
Embedded media file data can also be extracted and saved to disk from within |
| 356 |
Readers which support file attachments. This makes PDF documents a little more |
| 357 |
portable to Readers which do not ship with a multimedia plugin. |
| 358 |
|
| 359 |
|
| 360 |
Installation: |
| 361 |
|
| 362 |
Put the file movie15.sty to a place where TeX can find it. |
| 363 |
|
| 364 |
|
| 365 |
License: |
| 366 |
|
| 367 |
This material is subject to the LaTeX Project Public License. See |
| 368 |
|
| 369 |
http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html |
| 370 |
|
| 371 |
for the details of that license. |