# Embedding video in beamer pdf with XeTeX/LuaLaTeX to be viewed in Okular

The following code

\documentclass{amsart}
\usepackage{multimedia}
\begin{document}
\movie[height = 0.6\textwidth, width = 0.8\textwidth, showcontrols]{}{koala.mp4}
\end{document}


embeds a video clip into PDF when compiled with pdfLaTeX. This video can be viewed with the Okular pdf viewer. The code, however, fails to compile with XeTeX or LuaLaTeX. How can I embed a video clip so that the code could be compiled with XeTeX/LuaLaTeX, with video shown in Okular? The video file for the MWE is uploaded here.

• The canonical package is media9. The package you are using comes together with BEAMER. BEAMER's manual suggests that it works with dvips+ps2pdf and pdflatex. – Symbol 1 Oct 4 '16 at 3:17
• I need a LuaLaTeX/XeTeX solution exactly for Beamer, where I'm preparing lectures in the Metropolis theme, which looks pretty ugly with the pdfLaTeX. Media 9, oth, embeds videos in such a way that can't be seen with either Okular or outdated Acroread we have in Linux. – Sapere aude Oct 4 '16 at 3:49

When using LuaLaTeX, loading the luatex85 package seems to work out fine.