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}
media9
is a joke. As long as things are this cumbersome, almost no one will do these things.jw-player.swf
, (don't remember where I got it from or the version number) that works much much better (smooth/robust) in 9.4.1 than any other player around. I will leave the link for a short time here, in case you want to give it a try: dl.dropboxusercontent.com/u/987775/player.swf (it is actually jw-player, but keep than name if you want to use it withflashmovie
(Althoughmedia6
works a little bit better with the text flow). See here, tex.stackexchange.com/questions/67663/…