I am using beamer on Windows 10, and I want my mp4 video to be read using the multimedia package (I do not want media9 since I have multiple videos and the final pdf file is way too heavy in the end). Despite the multiple topics on related issues, I found no answer to this specific problem.
I have no compilation error, my video is in the correct folder. The pdf is created successfully. But in the pdf file, using the latest Adobe Reader version (2019.012.20036), it does not show the video, only a blank. If I click on the place where the video is supposed to be, I get a contour of it, but nothing with right-click. Any idea what is the problem? Here is the piece of code within one frame :
\movie[height=0.5625\textwidth, width=1.0\textwidth,
poster, autostart]{}{video.mp4}
Additional information 1 : I also work on Linux and the same piece of code (with the same mp4 video and using also multimedia) works perfectly. I mean that once the pdf is created, I open it with Okular, and the video starts directly. So the same code works on Linux (16.04), but does not work on Windows.
Additional information 2 : I nevertheless tried media9 to investigate this issue on Windows, with the same mp4 video. The video this time appears on the slide, but for some reason, does not start directly when I arrive on the slide, despite the pageopen command. Here is the corresponding code:
\includemedia[width=1.0\textwidth, height=0.5625\textwidth,
activate=pageopen, passcontext, transparent, addresource=hexapod.mp4,
flashvars={source=hexapod.mp4}]{}{VPlayer9.swf}
Best Answer
The
\movie...
command from packagemultimedia
implements the "Movie Annotation", an old standard from the PDF specification. In Acrobat Reader only very old video formats are supported: some QuickTime*.mov
and*.avi
with the "MS Video 1" codec. While MP4 may be playable in Linux Okular, this file format is not supported by Acrobat Reader and the PDF specification.media9
: For starting playback automatically, the Flash variableautoPlay
must be set as well. Optionactivate=pageopen
just tells the PDF viewer to initialise FlashPlayer and to load the video player appVPLayer.swf
on page-open.The following minimal example with
media9
, FlashVarautoPlay
and example files from themwe
package works for me. Newest versions of Acrobat Reader, FlashPlayer,media9
installed:For information about using
media9
with separate (not embedded) media files, see: https://tex.stackexchange.com/a/73039