I have tried to embed a .flv
video file into a PDF using either the package flashmovie
or the package media9
together with beamer
and pdfLaTeX
, as described, for instance, here.
The video is shown correctly in Acrobat Reader 9.4.1 on Ubuntu. However, the reader crashes when I move on to the next slide, irrespective of the contents of that slide. The reader issues the error message (acroread:7653): Gdk-WARNING **: gdk_window_set_user_time called on non-toplevel
.
Has anyone come across this problem and knows the reason/a solution?
Is the procedure described above still the recommended way of including videos into PDFs? Given that Acrobat Reader does not support flash anymore, it seems like there should be better ways.
Here is a minimal non-working example with the flashmovie
package:
\RequirePackage{flashmovie}
\documentclass{beamer}
\usepackage{flashmovie}
\begin{document}
\begin{frame}
\flashmovie[engine=flv-player,loop=1,width=146px,height=108px,auto=1,controlbar=0]{movie.flv}
\end{frame}
\begin{frame}
\end{frame}
\end{document}
Here is a minimal non-working example with the media9
package:
\documentclass{beamer}
\usepackage{media9}[2013/11/12]
\begin{document}
\begin{frame}
\includemedia[width=146px,height=108px,activate=pageopen,addresource=movie.flv,flashvars={source=movie.flv}]{alternative}{VPlayer9.swf}
\end{frame}
\begin{frame}
\end{frame}
\end{document}
Best Answer
Alexander Grahn's animate package is a great fallback option that works beautifully when converting videos to sequences of images.