Orjanp Orjanp - 3 years ago 278
LaTeX Question

Insert video clip in a lyx presentation and play it in GNU/Linux

How can I insert a video clip into a presentation created in Lyx?

Have seen http://www.latex-community.org/forum/viewtopic.php?f=19&t=48. It works, but there the video starts in the background in an external player.

I would prefer it to be played in the presentation itself. If an external player is used it it should at least start in the foreground. But the presentation takes the foreground. Using evince in GNU/linux as pdf viewer. Beamer is used as a presentation template.

Is it possible to play a video file in an embedded player in the presentation itself?

Created an example presentation. The code is found below.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
% this default might be overridden by plain title style
\def\lyxframeend{} % In case there is a superfluous frame end

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.




\title{Testing video}


\lyxframeend{}\section{Testing video}

\lyxframeend{}\subsection{Testing video}

\lyxframeend{}\lyxframe{Testing video}




Answer Source

How to insert video clips into PDF produced with LaTex, see: http://www.uoregon.edu/~noeckel/PDFmovie.html (using movie15 package).

Unfortunately, you can insert, but you cannot play that video on Linux (evince & okular don't support it, acroread plays it only if you have installed realplayer and are really lucky). Such video-in-a-PDF is playable on Windows.

You can produce cross-platform animations in PDF (not video) by using animate package and tikz/pgf. They play both in Linux and Windows acroread (if JavaScript is enabled) (but not in evince nor okular).

Otherwise you can create presentations with OpenOffice Impress or S5, both allow to embed videos easily, and both play well on Linux. For PDF putting a hyperlink, like you do, seems to be the most reliable way.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download