[Tex/LaTex] Media9 package in beamer class

media9

i want to use a movie in my beamer class presentation. I've worked now a lot in order to create a minimal working example but i failed all the time. I've also read a lot of threads here and elsewhere.

I'm using Ubuntu 12.04, Texlive 2012/Debian, Adobe Reader 9.4.1 .
I want to include a video and tried using .mp4 and .mov.

Compiling with no problems. Under Ubuntu: When I start the Adobe Reader in Fullscreeen, changing to the slide with the video lets adobe loads somehow, but nothing happens. Also under Windows, the Reader loads somehow, but does not play the video. Does somebody has an idea?

And is there maybe another way of including videos in a beamer class presentation in a way that the success of the presentation is not dependent on the Reader (e.g. Okular)?
Thanks a lot for your help.
Here my Example

\documentclass[slidestop,compress,10pt,xcolor=dvipsnames]{beamer}
\usepackage{media9}
\begin{document}

\frame{
\titlepage
}

\frame
{
\includemedia[
label=some_dice,
width=5cm,
addresource=output.mp4, 
transparent, 
activate=pageopen,
flashvars={
source=output.mp4
&loop=true % loop video
&scaleMode=letterbox 
}
]{}{VPlayer.swf}

}

\end{document} 

Best Answer

Most likely a video encoding issue, if the example above works using random.mp4 from the media9 package. Recent versions of ffmpeg were reported to produce faulty MP4 files.

The following workaround worked for me (starting from a numbered PNG sequence file-0.png, file-1.png, ..., file-99.png):

# high quality MPG with little compression at 25 frames per second
ffmpeg -i file-%d.png -sameq -r 25 video.mpg

# recoding into MP4/H.264
ffmpeg -i video.mpg -c:v libx264 -g 25 -r 25 video.mp4