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, 

1 Answer 1

  1. The \movie... command from package multimedia 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.

  2. media9: For starting playback automatically, the Flash variable autoPlay must be set as well. Option activate=pageopen just tells the PDF viewer to initialise FlashPlayer and to load the video player app VPLayer.swf on page-open.

The following minimal example with media9, FlashVar autoPlay and example files from the mwe package works for me. Newest versions of Acrobat Reader, FlashPlayer, media9 installed:



\begin{frame}{Blank page}
  Go ahead!

\begin{frame}{Video autoplay}
      passcontext, % enable VPlayer's right-click menue


For information about using media9 with separate (not embedded) media files, see: https://tex.stackexchange.com/a/73039

  • This works for media9, many thanks ! I thought the pageopen would do the job, I was missing the autoPlay=true argument. I will try different video format and codec for multimedia then. Thanks a lot
    – Antoine
    Aug 22, 2019 at 8:09
  • @Antoine I added the passcontext option. It gives you access to the right-click menue of VPlayer.
    – AlexG
    Aug 22, 2019 at 8:26
  • Thanks! I have one more question related to this issue: I want a robust beamer presentation that generates a pdf file that reads videos on both Linux and Windows. I understand from your answer that I should move on to media9 for Windows (it seems I cannot choose the MS Video 1 codec for avi). But media9 on Linux, unlike multimedia which works, produces a blank in Okular. Any idea what is the reason for this (with the same piece of code and mp4 file)? An alternative option was to use \animategraphics with png, but I have the same issue: it works on Windows, but not on Linux with Okular
    – Antoine
    Aug 22, 2019 at 8:35
  • @Antoine Unfortunately, neither Okular nor any other PDF viewer on Linux has implemented the Flash-based RichMedia Annotation that media9 is based on. A possible alternative could still be pkg animate (\animategraphics, animateinline) which supports SVG output. It is pretty portable: tex.stackexchange.com/a/235180
    – AlexG
    Aug 22, 2019 at 8:59
  • 1
    Thanks for the reply. Here is the last comment (I am pretty excited while writing it). as a last resort I have upgraded my Ubuntu from 16 to 18... and media9 actually works with Okular. I am not sure why it was not working on the version 16... Still, I have now a beamer presentation that can read videos on both Windows and Linux :)
    – Antoine
    Aug 22, 2019 at 9:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .