TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got the following minimum working example from: latex beamer: \includemedia won't play video

I use Windows and have Adobe X. I can get the MWE to compile, but in the .pdf, I cannot get it to play unless I use the VPlayer option as below and make a few additional modifications as in the media9 manual.

In addition, I am wondering whether there is a way to include it as apart of the cover slide, and also in a way such that it is barely (ideally almost not at all) visible?

I suspect that APlayer.swf might be preferred but I cannot get that working. Also, I imagine that I'd like to not use \pagewidth, but something much smaller.







share|improve this question
up vote 4 down vote accepted

Just remove the height and width options from \includemedia. Since there is no text-box argument (last-but-one argument), the video box will have zero size and be invisible. In order to be able to start playing the sound, you will have to specify a combination of activate=pageopen option (done already) and autoPlay=true FlashVar.

APlayer.swf can only play MP3 sound files.

If you want the sound to be played on the cover slide, then you will have to insert it there: \frame{\titlepage\includemedia...}.

Video and sound files are embedded as part of the PDF and don't need be distributed along with the PDF.

Slow down of page transitions may occur because AdobeReader has to uncompress and load the embedded media files and players while opening a page with embedded media.

If you just want to start playback of a sound file when the PDF is opened and let it play for the remaining time of the presentation, embed it on the cover page (see above) and use option deactivate=onclick. This suppresses un-loading of the media when the cover page is left during the presentation.

share|improve this answer
Thank you for your answer! Indeed, removing the height and width solved that problem. As for the VPlayer, APlayer, and other .swf options, what are the different types of videos and sound bytes that I can use? I thought it had to be .mp. I had an .flv that I converted to .mp (somehow came out .m4v in the conversion). In addition, you may notice that I edited my post because I added a cover slide. I realize I referred to it in my post without having code for it. My question is how can I have the music be played as part of the first slide. – J G Nov 13 '12 at 8:00
Two additional questions if that is ok. First, the .pdf is kind of slow in transitioning from the slide with the music to the next slide. Is that just inevitable? Second, how could I play this .pdf with the soundbite (or video) on another computer? Say I were to email this .pdf to somebody? They wouldn't automatically get the sound with it I'd imagine, right? Would I need to email the video too? I'm a little unsure of how that would work. – J G Nov 13 '12 at 8:02
media9 ships with 3 media players: VPlayer.swf (MP4, FLV), APlayer.swf (MP3), StrobeMediaPlayback (MP4, FLV, MP3). Which tool do you use for conversion? I recommend open-source FFmpeg for any conversion. Playing only the sound of a video file is kind of abuse. I'd convert the video into MP3 (removing the video information) and use APlayer.swf instead. – AlexG Nov 13 '12 at 8:38
Thanks for the open source suggestion. I had found something else online. I'd like to use the FFmpeg, although I'm having a hard time understanding from the website exactly what to download :( What do you mean it is kind of abuse? Like it is too much memory (computer space) to not need the video but to still have it? Would that be more efficient for the .pdf file? – J G Nov 13 '12 at 8:50
Also, just wondering whether you know about how to add the music to the title slide rather than a slide within the presentation? And also how to implement this on another computer if that would pose a problem? – J G Nov 13 '12 at 9:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.