Embed movies in LaTeX-Documents

Take a movie, e.g. movie.avi (1.5 MB), generated with the MeVisLab-file movie.mlab (6 kB).

Use your preferred LaTeX-Editor to typeset this .tex-file (531 Bytes, really!), or just copy-paste the code below:

\documentclass[paper=a4]{scrartcl}
 
\usepackage[ansinew]{inputenc} % needed for easy input of the 'ü' in my name
\usepackage{movie15} % needed for the inclusion of the movie
\usepackage{hyperref} % prerequisite for 'movie15'
 
\title{Movie-Example}
\author{David Haberthür}
 
\begin{document}
\maketitle
\begin{figure}[htb]%
\centering%
  \includemovie[autoplay,text=movie.avi]% parameters for movie15
  {.5\linewidth}{.5\linewidth}% height and width for display of the movie
  {movie.avi}% actual movie-file
\caption{Rotating vertebrae}%
\label{mov:vertebrae}%
\end{figure}%
\end{document}

Both the .tex-file and the movie have to be in the same directory on your HD, or else you need to adjust the path to the file on line 16…

After three compilations (needed by “movie15” to resolve some internals) you should now have a pdf including your movie, which is viewable in Adobe Reader1).

You can also download an example-file as a pdf (961 kB) to see for yourself without the whole LaTeX-Stuff. A player to actually display the embedded movies has to be installed on the host-computer, so make shure to include as “basic” movies as possible (and no specialized h.264-quicktime files or so :)

1)
According to the “movie15”-manual the resulting files only work with Adobe Reader, but most of them also work with the much faster and generally nicer Foxit Reader