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 ...


15

This code extends the video to full pagewidth, full pageheight or both, depending on the video aspect ratio (and that of the presentation PDF): \documentclass[10pt]{beamer} \usetheme{Warsaw} \usepackage{media9} \usepackage{tikz} \begin{document} \begin{frame}[plain] \begin{tikzpicture}[remember picture,overlay] \node[anchor=south west, ...


15

I managed to get your example working by using: \movie[ height = 6cm, width = 6cm, showcontrols, poster ] {}{waves.wmv} Note that I did that on Arch Linux with: $ okular --version Qt: 4.8.5 KDE Development Platform: 4.12.3 Okular: 0.18.3 For more details on the multimedia package, check this answer or the official documentation.


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

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

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 ...


7

You'll need to use Okular, and not Evince. With Okular, the example you provided works as it should.


7

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 ...


6

You can use the media9 package instead of multimedia (comes with beamer), which requires to convert your video to .mp4 first (e.g. here or wherever). It's worth the effort as media9 allows to include the video physically in the PDF, means you don't need to carry around the actual video file and you're not dependent on any codecs available on the target PC (...


5

As suggested by the OP: Since the viewer being used Adobe Reader-X, it is suggested that one uses media9 package. From the package description at CTAN: The pack­age pro­vides an in­ter­face to em­bed in­ter­ac­tive Flash (SWF) and 3D ob­jects (Adobe U3D & PRC), as well as video and sound files or streams in the pop­u­lar MP4, FLV and MP3 for­mats ...


4

You might see this as a proof-of-concept, I will gladly take any input and comments on this idea. We define a new field thumbnail to hold the path to the cover image, thumbnail, ... what have you \DeclareDatamodelFields[type=field, datatype=verbatim]{thumbnail} \DeclareDatamodelEntryfields{thumbnail} An entry might look like this @book{uthor, author ...


4

# in Youtube URLs is wrong. The syntax is documented here. Youtube clips are configured using Flash variables. These can be appended to the URL or added to the flashvars option argument. In either case, FlashVars are separated using the ampersand &, as already demonstrated in the cited example. Thus, to start into the clip at a particular time, one ...


4

First, you could change the catcode of # to use it like a normal character: \documentclass{article} \usepackage{media9} %pdflatex, latex+dvips+ps2pdf, xelatex %\usepackage[dvipdfmx]{media9} %latex+dvipdfmx \begin{document} {\catcode`\#=12 \includemedia[ width=0.6\linewidth,height=0.45\linewidth, activate=pageopen, flashvars={ ...


4

center(ing) never places anything in the left margin, so this is independent of beamer and multimedia, use \begin{center}\makebox[0pt]{\movie..}\end{center} To hide the width.


4

The correct FlashVar for setting the video source in StrobeMediaPlayback.swf is src=/filepath/file2.MP4 otherwise, the reported error occurs. The following MWE should work: \documentclass{beamer} \usepackage{media9} \begin{document} \begin{frame} \includemedia[ width=0.7\linewidth, height=0.5\linewidth, % activate=onclick, %this is default ...


4

In order to run a media file in an external application the attachfile or attachfile2 packages could be used: \textattachfile{myvideo.mp4}{\includegraphics[width=1cm]{myi‌​con}} where myicon is the basename of an image file (file extension removed) to be shown in the link area. Note that this solution requires proper application setting of the operating ...


3

You could set each .swf in a minipage to block them in; this allows you to set a heading: \documentclass{beamer} \usepackage{media9} \begin{document} \begin{frame}[t] \frametitle{ Results} \fbox{\begin{minipage}{.4\linewidth} \centering Heading A \includemedia[ label = AA, width = \linewidth, height = 50mm, activate ...


3

To complement BenC’s answer from the displaying side: I found it necessary (at least on Ubuntu 14.04) to change the backend of Phonon (which is used by Okular to play videos) to the VLC one. For me it sufficed to install the respective package (phonon-backend-vlc on Debian-based Linuxes).


3

Your best bet would be to convert the pdf to a series of images probably using imagemagick's convert routine, then use ffmpeg to assemble them into a video. Both tools are free and cross-platform. Stack Overflow has more detail - you could basically run the contents of the 2 php exec commands in the answer from the command line. Edit: I think it would be ...


3

With the media9 package and Adobe Reader you can play video files in a detached window at their natural size. You need to know the video size in pixels and pass it as an argument to the windowed option, e. g.: \usepackage{media9} ... \includemedia[ windowed=480x360, addresource=myvid.mp4, flashvars={source=myvid.mp4,autoPlay=true} ]{\strut Click!}{...


3

As you mentioned you are using Ubuntu, the question PDF viewer combined with video player on Askubuntu suggest to use Okular to read the video embedded in your PDF. Indeed, all pdf-reader do not support movies-, screen- or rich media-annotations; evince is one of them. Following MWE worked for me with .avi and .mp4 videos, when open with Okular: 0.19.3. \...


3

I added it as a hyperlink: \href{movie.avi}{\includegraphics{movie.jpg}} It's not embedded in the .pdf, but works with *.avi in the same folder as .pdf. Works with or without Acrobat Reader.


3

Well, after getting very frustrated about this I finally managed to get both animate and media9 content (using the embedded VPlayer.swf, see How to include multimedia files in beamer) to play under Ubuntu 18.04 by installing the latest Windows 10 Adobe Reader via wine. To play videos, one also needs to install the Firefox Flash Player plugin via wine. This ...


3

You can't really solve this on the TeX side. Features like media playback and JavaScript are viewer-dependent and mostly unsupported/not implemented. Acrobat and Okular are the viewers which do support the majority of what you would want to do with PDF.


2

Alexander Grahn's animate package is a great fallback option that works beautifully when converting videos to sequences of images.


2

The video area in your example has zero width. You only specify the height through the heightoption. The poster argument is empty from which the width could be taken. TeX cannot determine video dimensions from the video file. They must be provided either via options width and height or by using a poster image/text. In the latter case, the video can be ...


2

Of course, if a video is played in an embedded player, it is re-sampled to the actual number of pixels the video area covers on the screen. This may lead to details getting lost and other undesirable artifacts. The size of the video area depends on its relative size w.r.t. the PDF page size, the zoom-state of the PDF page within the PDF viewer and the window ...


2

Thanks to @AlexG for directing me to his solution for a closely related question. On closer review, there is no option to include mpg videos in movie15. This functionality has been deprecated together with media9. The newer package only accepts the more compressed, mp4 format. I used ffmpeg to convert my mpg file to an mp4 file with the command: ...


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