[Tex/LaTex] How to determine the true size of a swf movie

movie15swf

I am using the movie15 package to import an swg movie into my beamer presentation. The movie is exported from the Wolfram Mathematica by the

Export["filename.swg", <Animation>] 

command together with pdf poster exported by the

Export["filename.pdf", <Animation>] 

command. These two files are imported into my presentation by means of the following chunck of text:

\includemovie[
    label=movie-1
    ,text={\includegraphics[width=0.88\textwidth]{filename.pdf}}
]{}{}{filename.swf}

The option

[width=0.88\textwidth]

to the \includegraphics is added here to make the size of the poster approximately equal to the size of the swf movie. Without it imported swf video looks as badly pasteurized bitmap during first run of the movie after loading my presentation into Adobe Reader. During subsequent runs, the movie changes its size to some 'natural size' and looks much better.

Using the above described way of importing the swf movies, I would be happy if I could determine what is the exact value of the 'natural size' of the swf movie to set it through the option of the \includegraphics; current value, [width=0.88\textwidth], is obtained experimentally, it is not exact. Above all, I need several movies to import; they might have different sizes.

So my question is

How one can determine natural size of the swg movie?

Also, I would appreciate any advice on how to improve the above described way of importing an swf movie.

Best Answer

How one can determine natural size of the swf movie?

Impossible from within TeX. As for the external determination of the SWF size I'd use the command line tool swfbbox from the swftools bundle, which reads out the bounding box of the file.

Related Question