# Error on including large videos with media9 [closed]

I am trying to include a video of 17MB using the media9 package in a beamer presentation (I am using MiKTeX 2.9 on Windows 7):

\documentclass{beamer}
\usepackage[utf8]{inputenc}
\usepackage{media9}
%\usepackage[bigfiles=true]{media9}

\begin{document}
\begin{frame}
first page
\end{frame}
\begin{frame}
\frametitle{Title}
\includemedia[
width=0.4\linewidth,
height=0.3\linewidth,
activate=pageopen,
flashvars={source=myvideo.mp4}
]{}{VPlayer.swf}
\end{frame}
\end{document}


If I produce a pdf using pdflatex, it will work without a problem. If I use latex, dvi2ps, ps2pdf, however, I will get an error "TeX capacity exceeded".

I already tried increasing the main memory as recommended in the media9 package documentation and on Problems embedding a video with multimedia an media9. This works for smaller videos, but not for the one I am trying to include.

When I activate the bigfiles option, the log states 'MiKTeX GPL Ghostscript 9.00: Unrecoverable error, exit code 1' and no pdf output is produced.

Any ideas how this can be fixed?

UPDATE: With updated MiKTeX and media9 package v0.33, the error disappears. New problem: Now the first page is displayed in A4 paper size (as shown in the screenshot)

If I comment the \includemedia part out and keep everything else the way it is, the file is created with its two pages just fine.

-

## closed as off-topic by Speravir, mafp, Guido, Jubobs, moeweFeb 7 '14 at 22:17

• This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

Works here (I am using vanilla GPL Ghostscript 9.05, but the one shipping with MiKTeX should do as well). Which version of media9 do you use? My \jobname.log says Package: media9 2013/09/24 v0.33 acrobat-9/X compatible media. – AlexG Nov 11 '13 at 11:16
Please update your MiKTeX using Update Wizard. The MiKTeX Ghostscript executable is 9.05. – AlexG Nov 11 '13 at 13:37
Stick with the bigfiles option, it is the best choice for the latex+dvips+ps2pdf route. And update your MiKTeX installation which seems a bit rusty (GS-9.00 and probably outdated media9 package). – AlexG Nov 12 '13 at 8:32
Thank you for your comments. After a MiKTeX Update and an update of the movie9 package to v0.33, the pdf is produced. Now, however, if I add a page before the video with '\begin{frame} first page \end{frame}', this page will not be in presentation format but in A4 paper size. – Melanie Nov 12 '13 at 9:13
This question appears to be off-topic because it the discussed issue was caused by a bug in package media9 which meanwhile was fixed. – Speravir Feb 7 '14 at 20:25

This is indeed a bug in media9 in connection with really big files, the bigfiles option and the dvips route. An update, version 0.34, is being prepared and will be available for TeX-Live users within the next 2 days. MiKTeX may take somewhat longer.