Вставка в pdf видео

Helga87

Возможна ли вставка в pdf видеоролика? Хочется, чтобы было видео, которое проигрывается по щелчку на нем.

vall

ну там-же можно просто ссылки на внешние URI ставить.

banderon

Это возможно и очень даже просто. Например с помощью latex-beamer (и вообще, имхо, очень удобный пакет для создания презентаций)
Проверено лично мной. Видео работает в Acrobat Reader под Windows, но не пашет под Linux.
При этом фактически ролик не вставляется в pdf, туда вставляется ссылка на имя файла. То есть ролик надо распространять вместе с pdf-кой.

yolki

FAQ по бимеру в стади TeX FAQ есть .
правда там без видеороликов

Helga87

Большое спасибо. На самом деле, конечно, вставка видео нужна как раз для презентации, подготовленной в этом пакете.

yolki

так бы сразу и сказал - "вставка видео в презентацию на beamer-е"

13 Animations, Sounds, and Slide Transitions
13.1 Animations
13.1.1 Including External Animation Files
If you have created an animation using some external program (like a renderer you can use the capabilities
of the presentation program (like the Acrobat Reader) to show the animation. Unfortunately, currently there
is no portable way of doing this and even the Acrobat Reader does not support this feature on all platforms.
To include an animation in a presentation, you can use, for example, the package multimedia.sty which
is part of the beamer package. You have to include this package explicitly. Despite being distributed as
part of the beamer distribution, this package is perfectly self-sufficient and can be used independently of
beamer.
\usepackage{multimedia}
A stand-alone package that implements several commands for including external animation and sound
files in a pdf document. The package can be used together with both dvips plus ps2pdf and pdflatex,
though the special sound support is available only in pdflatex.
When including this package, you must also include the hyperref package. Since you will typically
want to include hyperref only at the very end of the preamble, multimedia will not include hyperref
itself. However, multimedia can be included both before and after hyperref. Since beamer includes
hyperref automatically, you need not worry about this when creating a presentation using beamer.
For including an animation in a pdf file, you can use the command \movie, which is explained below.
Depending on the used options, this command will either setup the pdf file such that the viewer application
(like the Acrobat Reader) itself will try to play the movie or that an external program will be called. The
latter approach, though much less flexible, must be taken if the viewer application is unable to display the
movie itself.
\movie[hoptionsi]{hposter texti}{hmovie filenamei}
This command will insert the movie with the filename hmovie filenamei into the pdf file. The movie
file must reside at some place where the viewer application will be able to find it, which is typically
only the directory in which the final pdf file resides. The movie file will not be embedded into the pdf
file in the sense that the actual movie data is part of the main.pdf file. The movie file must hence be
copied and passed along with the pdf file. (Nevertheless, one often says that the movie is “embedded”
in the document, but that just means that one can click on the movie when viewing the document and
the movie will start to play.)
The movie will use a rectangular area whose size is determined either by the width= and height=
options or by the size of the hposter texti. The hposter texti can be any TEX text; for example, it might
be a \pgfuseimage command or an \includegraphics command or a pgfpicture environment or just
plain text. The hposter texti is typeset in a box, the box is inserted into the normal text, and the movie
rectangle is put exactly over this box. Thus, if the hposter texti is an image from the movie, this image
will be shown until the movie is started, when it will be exactly replaced by the movie itself. However,
there is also a different, sometimes better, way of creating a poster image, namely by using the poster
option as explained later on.
The aspect ratio of the movie will not be corrected automatically if the dimension of the hposter texti box does not have the same aspect ratio. Most movies have an aspect ratio of 4:3 or 16:9.
Despite the name, a movie may consist only of sound with no images. In this case, the hposert texti might be a symbol representing the sound. There is also a different, dedicated command for including
sounds in a pdf file, see the \sound command in Section 13.2.
Unless further options are given, the movie will start only when the user clicks on it. Whether the viewer
application can actually display the movie depends on the application and the version. For example, the
Acrobat Reader up to version 5 does not seem to be able to display any movies or sounds on Linux. On
the other hand, the Acrobat Reader Version 6 on MacOS is able to display anything that QuickTime
can display, which is just about everything. Embedding movies in a pdf document is provided for by
the pdf standard and is not a peculiarity of the Acrobat Reader. In particular, one might expect other
viewers like xpdf to support embedded movies in the future.
115
Example: \movie{\pgfuseimage{myposterimage}}{mymovie.avi}
Оставить комментарий
Имя или ник:
Комментарий: