# Tag Info

## Hot answers tagged media9

25

A more specific and updated answer can be found in my answer to Did anyone succeed in playing embedded movies inside Acrobat in Linux? As for production of PDF, no update needed. Sadly, there is no media playback (except for 3D) in AR for linux since v. 9.4.1. It was disabled for obscure reasons. Some opensource PDF viewers on Linux support playback of ...

24

media9 package information can be found in the documentation usage (2code examples to be compiled as separate documents): %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % player (VPlayer.swf) and video resource (eso50supernova.m4v) % embedded in the document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \...

20

Update Thanks to @percusse for pointing out in his comment that the original answer was not the one the OP was asking for. So I did a little searching and found this link. Basically, the workaround is, Install Adobe Reader 9.4.1. Install flashmovie or copy it to your source folder (especially the player_flv_maxi.swf) Write \includepackage{hyperref} and \...

16

Media files to be played back are usually embedded into the PDF (although playing files from remote URLs via http and rtmp protocols is supported too). Media9 implements playback of media files inside PDF documents using the FlashPlayer plugin in Adobe Reader. This feature is currently available on the Windows and OSX platforms. Two prerequisites are ...

16

multimedia package If we want to stay in the beamer universe, the package multimedia comes as part of beamer (nevertheless you have to explicitly load it with \usepackage{multimedia}). information can be found in the beameruserguide, section 14.1.1 Including External Animation Files usage: The basic command to include a video/audio file is \movie[⟨...

15

Update As of 2013/11/04, package media9 contains media player Flash components VPlayer9.swf and APlayer9.swf. They are compatible with the (somewhat outdated) Flash Player 9 plugin that is bundled with Adobe Reader for Linux 9.4.1 and can be used for producing PDF documents with embedded video (MP4/H.264) and audio (MP3) which target this particular Linux ...

14

I recently had this issue with media9 and beamer. When I tried updating the packages didn't work for me. What worked however, was to remove and reinstall them (l3kernel and l3packages) using miktex package manager.

11

There is a deactivate option with media9 inclusion command \includemedia. Default setting of deactivate is pageclose to unload the media player upon page change. If set to onclick, the media keeps playing in the background. To automatically start playing, the activate command option must be set to either pageopen or pagevisible and the autoPlay Flash ...

11

Click on the image below to see the ticking metronome (SVG version) in action: This animate-based example comes in two versions. The PDF version requires Acrobat Reader and is thus restricted to Windows and OSX platforms for desktop PCs. (Mobile devices are not supported.) The PDF version uses media9 for playing the embedded sound file click.mp3, taken ...

9

With multimedia, only videos in the AVI format, encoded using one of the standard codecs available on Windows (MS Video 1, Full Frames (Uncompressed)) will successfully play on Windows. MPEG does definitely not work. \movie{\includegraphics[width=0.8\textwidth]{chaos1.png}}{chaos1.avi} I successfully produced an AVI from a BMP sequence using pjBmp2Avi.exe ...

9

UPDATE Choosing the right libx264 options with ffmpeg / avconv is a bit tricky. The following ffmpeg command line should produce usable video files (adjust frame -r ... and keyframe -g ... rates to your needs): ffmpeg -i <input> -vf scale="trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -profile:v high -pix_fmt yuv420p -g 25 -r 25 output.mp4 <input>...

9

You can insert a custom play button which also starts a (JavaScript-) timer to pause the video after a given time-out. In the example below, the video pauses 10 s after the play button has been pressed. playPause and pause are ActionScript functions of VPlayer.swf which are exposed to the JavaScript engine of Adobe Reader. There are two ways of calling them ...

9

Installing package ocgx2 will fix the problem. (As ocgbase.sty is part of the ocgx2 package, as referenced here.)

9

pdfpc pdf viewer optionally with pdfpc-commands pdfpc targets presentations in pdf format regardless of the producer of that presentation. It also supports showing notes on another screen (see this answer), which integrates nicely with the way of adding notes in beamer. information can be found on the pdfpc homepage and on their github repository. usage ...

8

I was trying to do same as you and this worked to me \documentclass[unknownkeysallowed]{beamer} \mode<presentation> \usepackage{beamerthemesplit} \usepackage{multimedia} \begin{document} \begin{frame}[allowframbreaks] \centering \movie[height = 6cm,width = 6cm,showcontrols] {}{QuantumHallEffectExp.mp4} \end{frame} \end{document} And in order ...

8

Security measures of Adobe Reader prevent the built-in FlashPlayer from accessing files on the local disk. Only embedded files and those specified as a web URL are supported. However, a web server may be running on the local machine, serving media files residing in a dedicated folder. Setting up a lightweight web server on a presentation laptop is easy. I ...

8

Your definition (after a few expansions) has & at the top level so messes up the table cells, add {} to hide them: \newcommand*\listen[2]{{%% listen to the file named #1, but write out #2 \includemedia[ addresource=#1, transparent, flashvars={ source=#1 &autoPlay=true &hideBar=true }, ]{#2}{APlayer....

8

Replace VPlayer.swf with APlayer.swf.

6

MP4/h.264 video and MP3 sound files embedded with media9 version 0.11 are played back in ezPDF Reader on tablets and phones with Android or iOS, yet without using the Flash-based players (StrobeMediaPlayback.swf, VPlayer.swf, APlayer.swf) embedded along with the media file. ezPDF uses its own, built-in player because it doesn't support Flash. In order to ...

6

Just to add to Chris's answer above: You may need to run the MikTex Update Manager in both Admin and non-Admin modes. In Windows that means: Start -> All programs -> MikTex 2.9 -> Maintenance -> Update and Start -> All programs -> MikTex 2.9 -> Maintenance (Admin) -> Update (Admin)

6

How possible is that? Very possible! ;-) Here is an attempt using tikz and media9. The code for the video embedding is taken directly from the media9 package manual; I've simply inserted that code into a TikZ \node and slightly adjusted the size. The required media files are cube.mp4 and cubeposter.png, both available from the media9 distribution. Place ...

6

You are using package media9 and its APlayer.swf app. It offers a number of ways to play/pause/stop playback (see Pg. 20 of the documentation): Pause: press mouse button over the widget and move the mouse out while keeping the button pressed press the Space bar on the keyboard Stop: (=pause+rewind) press the Home / Pos1 key on the keyboard Play: click ...

6

media9 uses TikZ to draw a play-button overlay with transparency. This seems to have side effects. As a workaround, add one of playbutton=plain or playbutton=none options to \includemedia or as a package option.

5

The code is not correct. Playback of a video file (movie.mp4) needs a Flash-based media player to be included as the last argument of \includemedia. The video file itself must be embedded as a resource file and be made known to the media player by means of a media player specific Flash variable. Adobe Reader on Linux has support for Flash and media playback ...

5

First of all you need your video files in MP4 format with H.264 compression. See section 1 of the media9 documentation on how to recode existing video files / how to recreate them from bitmaps. AVI format is not supported. To start two or more videos at once, a media button can be inserted that controls them all. Looping the videos is enabled by adding loop=...

5

As Joseph Wright pointed out, I can confirm that this is a bug in media9.sty, if you replace "\msg_error:nnxx{media9}{file~not~found}{#1}" by "\msg_error:nnn{media9}{file~not~found}{#1}", there will be no error. However this points out to the fact that your file 'c4.mp4' doesn't exists or is not found.

5

Here's how I solved the problem using several bits of advice from AlexG. Listing the steps here just in case somebody else will later have problems figuring out how to port a Mathematica animation into a powerdot/media9 slide set. Export the animation from Mathematica in AVI-format. The online help of Mathematica gives you the syntax of that command. Use ...

5

Official Adobe documents on embedded multimedia support (MP4/h.264 video, MP3 audio) in PDF, such as https://helpx.adobe.com/acrobat/using/adding-multimedia-pdfs.html, are still Flash-centric. Thus, it seems Adobe have not yet decided on the future of multimedia in PDF beyond Flash EOL. Maybe, they are working on it, but nothing has been disclosed to the ...

4

There are two problems with your example: As Beamer frames have default left and right margins, a video resized to the width of \pagewidth will extend beyond the right edge of the frame into the second screen which is reserved for the notes. This is not a media9 specific issue as any box with this horizontal dimension would behave similarly. If you really ...

4

Indeed, large media files may cause TeX to interrupt with error ! TeX capacity exceeded, sorry [main memory size=3000000]. when going the latex-->dvips-->ps2pdf route. While writing the DVI file, media files in the current page that are about to be embedded are kept in TeX's memory until shipping out of the readily typeset page. In case of large or many ...

Only top voted, non community-wiki answers of a minimum length are eligible