Generalmovie15 package

LaTeX specific issues not fitting into one of the other forums of this category.
afterdust
Posts: 2
Joined: Mon Oct 05, 2009 3:41 am

movie15 package

Post by afterdust »

Hi all,
I'd like to receive some information about movie 15 package, if possible.

I saw many examples as far as JavaScript customization is concerned,
but I'd like to know if it Is possible to customize the toolbar containing the range of commands to handle interactive 3d, which appear whithin the output PDF.

Thanks for any hint you would give me.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

movie15 package

Post by localghost »

The first step is to study the movie15 manual.


Best regards and welcome to the board
Thorsten
afterdust
Posts: 2
Joined: Mon Oct 05, 2009 3:41 am

Re: movie15 package

Post by afterdust »

Thanks you both for your kind welcome and hint.
Indeed, I went through the manual you suggests as the first step, but there I cannot find any clue as far as toolbar customization is concerned, although the manual itself is quite interesting and explains how to handle 3D object.

Maybe, I might add my customized buttons to the PDF and link each to a particular feature (pan, rotate, and so on) to be implemented through JavaScript...
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

movie15 package

Post by dfmalh »

Hi, I am struggling to get a movie (.avi) into my thesis.

Here is my problem.

To get hyperref to work with my images (80) in my thesis as .eps (for publication) I did the following:

Code: Select all

\usepackage[dvipdfm, pagebackref]{hyperref}
It works when I compile it like this: latex --> dvi --> ps --> pdf

So to include my small movie (.avi) I did the following:

Code: Select all

\usepackage[dvipdfm, pagebackref]{hyperref}
\usepackage{movie15}
This does not work, because movie15 does not work with dvipdfm.

I did not want to use PDFLATEX because it does not include .eps, and if I want to use it, it would mean that I would have to change 80 images to .eps

I read somewhere that there is a package...

Code: Select all

\usepackage{epstopdf}
...that will convert EPS to PDF on demand... So I tried to insert it, and take dvipdfm out, ran PDFLATEX, but then I run into other problems...

Is there anybody who have figured a way out to create a PDF containing and EPS image and a movie? I really need help on this problem.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

movie15 package

Post by localghost »

dfmalh wrote:[...] So I tried to insert it, and take dvipdfm out, ran PDFLATEX, but then I run into other problems. [...]
Describe these problems precisely.


Best regards
Thorsten
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

Re: movie15 package

Post by dfmalh »

Hi, thanks for the reply.

When I take the package "dvipdfm" out and use latex to compile my thesis, my section headings and figure titles run of the page, they are not "pushed" to the next line.

So I tried to add package "epstopdf" with pdflatex to compile my thesis. Now I have figures that is undefined.

Also, I run into problems with my reference list, not updating, when I use pdflatex.

Last night, I started to convert my .eps figures to .pdf. When I tested my one chapter containing the movie, it seemed that everything is working including the movie when I compile with pdflatex. I can't play the movie directly in Acrobat (Ubuntu), but at least the attachment open and then the movie can be viewed through my local media-player.

So I will convert all my eps images to pdf and use pdflatex to put my thesis together. Unfortunately, I still have to use latex to update my references correctly. So I have to run latex for the chapter, then bibtex for the chapter, then latex 2-3 times on the chapter, then include all my chapters in the master document, and then run pdflatex 2-3 times... this seems to do the job, a bit "extream", but the final product looks very good. I will have to check everything/references though...

Maybe there is a shorter way. Or maybe s how-to somewhere to create a document containing eps images and movie file that can be compiled with latex.

Thanks for the help.
Danie
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

movie15 package

Post by localghost »

Converting "on the fly" with the epstopdf package needs shell escape enabled.

Code: Select all

pdflatex -shell-escape jobname.tex
If your difficulties persist, provide a minimal working example (MWE) as well as its log file and necessary graphics files attached.
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

movie15 package

Post by dfmalh »

Hi, thanks for the help and ideas. In the end because of a time constrained I used epstopdf from the terminal (linux) to convert all my EPS images to PDF images. That way I was able to include my video with the movie15 package.

If someone else want to do it, here is the terminal code to convert multiple EPS images to PDF.

Code: Select all

find -name '*.eps' -execdir epstopdf {} \;
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

movie15 package

Post by dfmalh »

Hallo everybody, now I ran into another problem with the movie15 package. I will give a little more background first and then also some examples...

I have no problem inserting a movie file into a simple document (PDFLatex), and play it on my PC using "Method 1". However, I was unable to play the movie on another computer from the PDF (or even save the attached movie) that I created with the second method.

I compiled the test document two ways, here are they:


Method 1: (I can play and save the movie file)

Code: Select all

\documentclass[a4paper]{article}
\usepackage{movie15}
\usepackage{hyperref}
\title{Movie-Example}
\author{TEST}
\begin{document}
\maketitle

\begin{figure}[htb]
  \centering
    \includemovie[
     autoplay,
     text={SSC video}]
     {.5\linewidth}{.5\linewidth}
     {scc.avi}
  \caption{SSC video.}
  \label{mov:scc}
\end{figure}

\end{document}

Method 2: PROBLEM

Code: Select all

\documentclass[a4paper]{article}
\usepackage{movie15}
\usepackage{hyperref}
\title{Movie-Example}
\author{TEST}
\begin{document}
\maketitle

\begin{figure}[htb]
  \centering
    \includemovie[
     autoplay,
     text={SSC video}]
     {.5\linewidth}{.5\linewidth}
     {home/danie/PhD/Thesis/contents/chapter2/scc.avi}
  \caption{SSC video.}
  \label{mov:ssc}
\end{figure}

\end{document}

"Method 1", works, but "Method 2" have problems, opening (finding) and saving the file. The only difference is how I specify where the movie is. "Method 2" contains the full path.

I use the memoir class to write my thesis (the Uni template) and have to use "Method 2", because I \include each chapter into a master document which I compile to get the final thesis.pdf (via pdflatex).

So I have to insert the full path/to/movie into my chapter2.tex to compile the final thesis.pdf. It does not work when I leave out the full path, I have tried...

Also, using "Method 2" create a name for the attached movie file, something like this: home/danie/PhD/Thesis/contents/chapter2/scc.avi

This file can not be opened (name contain illegal characters) or be saved (file not found). Non of these problems exist when using "Method 1", where the file name is only scc.avi

The above methods are working examples. Just try to open the pdf on another PC to see what I mean.

I worked through the movie15 documentation, but either missed the solution, or did not did any. Is there anybody who know how to get this to work, or who had similar problems and know of a work around?
dfmalh
Posts: 19
Joined: Fri Jul 25, 2008 1:12 pm

Re: movie15 package

Post by dfmalh »

Hallo everybody, I figured it out. Here is the solution.

It is so simple... just move the movie file to the root/main folder where the master .tex file is that is used to create the final PDF. It seems that the movie15 package checks that folder.

If you use sub-folders like I do for each chapter that is also "OK", you can still put the movie file in the root/main folder, and it will be inserted correctly. The problem only start when you put it into a sub-folder, as the whole path become part of the file name... maybe this can be addressed in an "next/future update" of the movie15 package.

Cheers :D
Post Reply