[texhax] converting movie 15 documents to media9

Alexander Grahn A.Grahn at hzdr.de
Mon Mar 19 17:27:24 CET 2012

On Sun, Mar 18, 2012 at 06:15:40AM -0400, Victor Ivrii wrote:
>How to convert the string for movie15
>to media9 (so the result will be the same)

First you need your video file in MP4 Format (preferably encoded with the
h.264 codec). You can use ffmpeg to convert existing video files

  ffmpeg -i Sample.mov -vcodec libx264 Sample.mp4

or one of the numerous online-services available, such as
www.mediaconverter.org (select `h264' and `aac' as codecs for video and
audio under `advanced options').

A sequence of numbered bitmaps, such as frame-0.png, frame-1.png, ... 
can be converted to a high quality video at small file size by

  ffmpeg -i frame-%d.png -vcodec libx264 myvideo.mp4

The MP4 is embedded together with a media player flash-app, such as
VPlayer.swf, which is already installed with media9.sty. If you prefer a
full-featured media player, I recommend StrobeMediaPlayback.swf. You can
get it from SourceForge.net (it's open-source):


StrobeMediaPlayback.swf resides in a subfolder of the expanded ZIP. Put it
into your working directory or any other directory. Use \addmediapath{...}
to configure the search path in the latter case.


  \usepackage[english]{babel} %media9.sty needs it (language doesn't matter)
  % in case you put your video files into a sub-folder, add it to the
  % search path:
  \addmediapath{./files} %mymovie6.mp4, StrobeMediaPlayback.swf
  % the same for graphics files
  \graphicspath{{./files/}} %mymovie6.jpg
    \item Using {\tt VPlayer.swf} (part of media9 package)\\

         source=mymovie6.mp4% same path as in addresource!

    \item Using {\tt StrobeMediaPlayback.swf} (get it from sourceforge.net)\\
         src=mymovie6.mp4% same path as in addresource!
        &autoPlay=true% immediately start playing after activation
        &scaleMode=stretch% scale width and height of video independently to fit
                          % width and height options

More information about the texhax mailing list