I am a noob in adding animations. I'm making progress, but new problems apparently show up all the time. Hardly a surprise actually. Anyway.
System: WinEdt 7.0, MikTeX 2.9, Windows 7
\documentclass{powerdot}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
%\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[finnish]{babel}
\usepackage{amsmath,amssymb}
%\usepackage{psfrag}
\usepackage{media9}
\begin{document}
\begin{slide}{Esimerkki D1}
Sykloidiksi kutsuttu käyrä on $x$-akselia pitkin sutimatta vierivän yksikköympyrän kehältä
kiinnitetyn yhden pisteen ympyrän pyöriessä piirtämä käyrä.
\includemedia[
width=200pt,
height=70pt,
activate=pageopen,
]{}{sykloidi.swf}
\end{slide}
\end{document}
The file sykloidi.swf is a video of a cycloid being drawn (generated by Mathematica, but that is probably irrelevant).
The above compiles all right via the DVI->PS->PDF route. The resulting PDF slide set looks good otherwise, but when I started zooming in Adobe Reader (going to full screen mode is enough) I was very surprised to notice that the size of the animated area remained the same, and the gap created by zooming is filled in with black.
This is IMHO bizarre. I do realize at some level that video may have a built-in unscalable resolution, but SWF is vector graphics, and it is supposed to scale, right?
I tried to insert a scale variable (giving it a modest value like 1.2), but that only made the surrounding box bigger (it overflowed outside the slide eventually).
So how does the syntax of scaling work in media9? I tried to find it in this document, but unfortunately couldn't make head or tails out of that. Is there something like "media9 for dummies" somewhere that you would recommend? Googling gave some hits, but the documents referred to external programs in Mac OS or seemed to depend on TikZ or...
Edit1: I know nothing about the internal structure of various video formats. But still images (irrespective of whether they were originally .png, .eps) scale with the rest of the document when viewed in Adobe Reader, why is video different? I realize that the problem may be elsewhere, in which case I should ask, whether anyone can diagnose the problem.
Edit2: It is possible that the technically correct term I need is resizable as opposed to scalable. As I said, I'm ignorant about such differences.
width=linewidth
instead of a fixed size only affects the size of the box surrounding the animation, not the size of the animation itself.sykloidi.swf
. Why don't you generate an mp4 video file and load it intoVPlayer.swf
?VPlayer.swf
can be configured to use various scale modes via FlashVars:none
(the one you experience with Mathematica generated SWF),letterbox
,stretch
,zoom
. Try exporting the animation frames as numbered PNG graphics files. You can first combine them to an uncompressed AVI video using some Windows tool and then convert this AVI to MP4/H.264 video by means of an online service (video.online-convert.com/convert-to-mp4)