Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to know the procedure to embed video and animation in LaTeX step by step. I tried to follow the instructions from this forum and wrote a LaTeX file. This is my code for embedding a video in LaTeX beamer...an icon is visible in the third slide but when I am clicking that video is not playing...I have tried with .avi file also. I do not know what went wrong

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{graphicx}
\usepackage{verbatim}
\usepackage{multirow}
\usepackage{ctable}
\usepackage{geometry}
\geometry{verbose,letterpaper}
\usepackage{movie15}
% \usepackage{media9}
\usepackage{hyperref}
\newcommand{\fullpage}[1]{
\begin{frame}
 #1
\end{frame}
}
\author{~}
\institute{Linux Community}
\title{Emdedded Video on Latex}
\begin{document}
\frame{ \titlepage }
\fullpage{See Demo video}
\begin{frame}
abc
\includemovie[poster,autoplay,externalviewer, text={\small(Loading bloch.mp4)}]{6cm}{6cm}{bloch.mp4}
% \includemedia
% [
%   activate=pageopen,
%   width=200pt,height=150pt,
%   addresource=bloch.mp4,
% %   text={\small(Loading bloch.mp4)}
%   flashvars={%
%      source=bloch.mp4% same path as in addresource!
%    &autoPlay=true%    % optional configuration
%    &loop=true%        % variables
%   } 
%   ]{}{VPlayer.swf}

  def

\end{frame}
\end{document}

I would be really grateful if someone helps me out.

share|improve this question
    
Note that your PDF viewer must be able to play videos. Maybe that is the problem. Which PDF viewer are you using? Adobe Reader? Please include the version. –  Martin Scharrer Jan 3 '13 at 13:41
    
You can try my answer here. –  Please don't touch Jan 3 '13 at 13:42
    
no,I have Okular –  Arijit Hazra Jan 3 '13 at 13:54
1  
Welcome to TeX.sx! –  Andrew Swann Jan 3 '13 at 13:59
    

1 Answer 1

In addition to Karl's students answers (Can we use media9 to show a video on a PDF but the video is not embedded to the PDF?) and this other question: gif image in beamer presentation I can suggest what I did for my thesis presentation:

In the preamble of the beamer:

%Graphics and Videos
\usepackage{graphicx} %The mode "LaTeX => PDF" allows the following formats: .jpg  .png  .pdf  .mps
\graphicspath{{./PresentationPictures/}} %Where the figures folder is located
\usepackage{media9}
\addmediapath{./Movies/}

And then I included my file like this:

\begin{frame}
\frametitle{Forward Kinematics}

\begin{center}
\includemedia[
    activate=onclick,
    width=0.75\textwidth
]{\includegraphics{FK3.png}}{FK3.swf}
\end{center}
\end{frame}

As you can see, I used the .swf file extension. I too had a .avi file and in order to convert it to .swf I used AnyVideoConverter.

I hope this helps

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.