Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

show gif movie in beamer slide

889 views
Skip to first unread message

Dr Engelbert Buxbaum

unread,
Apr 8, 2013, 1:56:58 PM4/8/13
to

Hi,

for one of my beamer-lectures I would like to show a gif-movie; I tried
movie-15. Unfortunately that doesn't work ("file not found" error).
Which other format could I use, and how do I convert?

Thanks in advance

Engelbert

--
Car (noun): erratically moving obstacle on the road

orod...@gmail.com

unread,
Apr 8, 2013, 7:02:48 PM4/8/13
to
My suggestion is: forget about including a movie in your beamer. It is always OS dependent (besides being Acroread version dependent). It is much easier to create a webpage with your GIF (which is 100% OS independent) and add a link to it from your beamer. Here it follows an example of such link:

\begin{frame}

\frametitle{Beamer topic}

\begin{center}
\scalebox{1}{\textit{Movie:}}\pdfstartlink attr{/c [1 1 1] /Border [0 0 0]} user{
/Subtype /Link /A << /Type /Action /S /Launch /F (webpage.html) >> }
{some text with LaTeX code} \pdfendlink
\end{center}

\end{frame}

If for some reason you still want a movie in your beamer here it follows some code to do it:

\begin{frame}

\frametitle{Beamer topic}

Some text...

\flashmovie[width=7cm,height=7cm]{amovie.swf}

\end{frame}

As you can see it includes a SWF (not a GIF) movie. And it requires flasmovie.sty (and no guarantee to work on all OSes).

Good luck with it.

Best regards

Tordar

Alexander Grahn

unread,
Apr 9, 2013, 5:27:58 AM4/9/13
to
Am Montag, 8. April 2013 19:56:58 UTC+2 schrieb Dr Engelbert Buxbaum:
> Hi,
>
>
>
> for one of my beamer-lectures I would like to show a gif-movie; I tried
>
> movie-15. Unfortunately that doesn't work ("file not found" error).
>
> Which other format could I use, and how do I convert?

Movie15 is obsolete, use package media9 for embedding videos in the FLV, H.264 or SWF formats. See, e. g. http://tex.stackexchange.com/a/102600

Another option is the animate package that allows you to animate a bitmap sequence (in PNG or JPEG formats with pdflatex, Postscript format with latex+dvips+ps2pdf). This bitmap sequence can be obtained by splitting an existing animated gif into its constituent frames. (Gif is not a supported format in Adobe Reader).

gifsicle --unoptimize animated.gif tmp.gif
convert tmp.gif frame.png

For animating the obtained sequence frame-0.png, frame-1.png, etc. using the animate package, see

http://tex.stackexchange.com/a/99361

or using a size optimized animated gif, see

http://tex.stackexchange.com/a/107508

Alex
0 new messages