Graphics, Figures & Tablesmedia9 | Embedding an AVI File

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ireneadler
Posts: 2
Joined: Sun Jun 03, 2012 2:47 pm

media9 | Embedding an AVI File

Post by ireneadler »

Hi,

I'm trying to embed a video in my LaTeX presentation, but it won't work. My code looks something like this

Code: Select all

\documentclass{beamer}
\usepackage[ngerman]{babel}
\usepackage{media9}
\begin{document}
\begin{frame}
\input{film}
\end{frame}
\end{document}
I used \input because I got an error telling me that the main memory size was exceeded.
'film.tex' has the \includemedia command

Code: Select all

\includemedia[activate=onclick,width=0.5\linewidth]{test.avi}
After compiling, Adobe shows me the file, but instead of the video I get an empty page.

I would really appreciate your help,
Charlotte

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

media9 | Embedding an AVI File

Post by localghost »

Perhaps you should try the multimedia package which is part of the beamer bundle. It is described in Chapter 14 of the class user guide.


Best regards and welcome to the board
Thorsten
alex
Posts: 32
Joined: Mon May 19, 2008 10:53 am

media9 | Embedding an AVI File

Post by alex »

See the media9 documentation. It has plenty of examples you can copy and paste. And you will need to convert your video files to MP4 format first. See also http://tex.stackexchange.com/a/58122/1053
ireneadler
Posts: 2
Joined: Sun Jun 03, 2012 2:47 pm

Re: media9 | Embedding an AVI File

Post by ireneadler »

The multimedia package works great!
Thank you!
alex
Posts: 32
Joined: Mon May 19, 2008 10:53 am

media9 | Embedding an AVI File

Post by alex »

The multimedia package works great!
Be aware that with multimedia package the video file is not embedded into the PDF and remains a separate file you must carry around with the PDF. Moreover, the video file may not play on every computer if it uses a specific codec that is not available on the host computer.

With media9 the video file is physically embedded into the PDF and the built-in player of AdobeReader is used instead of an external plugin. MP4 video with H264 codec will run everywhere.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

media9 | Embedding an AVI File

Post by localghost »

alex wrote:Be aware that with multimedia package the video file is not embedded into the PDF and remains a separate file you must carry around with the PDF. […]
Can be preferable since the PDF output is not blown up.
alex wrote:[…] Moreover, the video file may not play on every computer if it uses a specific codec that is not available on the host computer. […]
Codec problems shouldn't play a major role on modern machines. They can be upgraded quite easy if necessary.
alex wrote:[…] With media9 the video file is physically embedded into the PDF and the built-in player of AdobeReader is used instead of an external plugin. […]
Hence this will only run in the Ad0be Reader. Not everyone uses this reader for viewing PDF files (e. g. me).
alex wrote:[…] MP4 video with H264 codec will run everywhere.
But this would need conversion if the file to embed is in another format (as you stated yourself). The file in question is an AVI file
Post Reply