13

I have been trying to play embedded videos in presentations created in pdflatex/Beamer in Okular. I have read this and this but to no avail!

Any suggestions?

The version of Okular being used is 0.13.3 using KDE devlopment platform 4.7.4. I am running Ubuntu 11.10.

My minimum working example is

\documentclass[bookmarks=true]{beamer}

\setbeamertemplate{footline}[page number]
\setbeamercolor{structure}{bg=yellow, fg=black}

\usepackage[english]{babel}
% or whatever

\usepackage[utf8]{inputenc}
% or whatever

\usepackage{times}
\usepackage[T1]{fontenc}
% \usepackage{movie15}
\usepackage{multimedia}
\usepackage{fourier-orns}

%  \usepackage{caption}
\usepackage[font=scriptsize]{caption}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage{amsmath,amssymb}
\usepackage[numbers]{natbib}
%\usepackage{paralist}
\usepackage{color}
\definecolor{olivegreen}{rgb}{85, 107, 47}


\begin{document}

\begin{frame}
\frametitle{Slide Title Here}
% 
% \centering
% \includemovie{6.5cm}{6.5cm}{waves.avi}
\movie{6cm}{6cm}{waves.wmv}

\end{frame}

\end{document}

My video file is uploaded here for you to download and use.

AVI file and wmv file

All I see in Okular is this:

enter image description here

:(

dearN
  • 2,760

2 Answers2

18

I managed to get your example working by using:

\movie[
  height = 6cm,
  width = 6cm,
  showcontrols,
  poster
] 
{}{waves.wmv}

Okular success

Note that I did that on Arch Linux with:

$ okular --version
Qt: 4.8.5
KDE Development Platform: 4.12.3
Okular: 0.18.3

For more details on the multimedia package, check this answer or the official documentation.

BenC
  • 549
  • Thank you! Will try this soon and mark an answer (your answer) – dearN Mar 31 '14 at 17:48
  • Hi, I've been trying this solution with okular 1.5.3 and TeX Live 2018 and it does not work. After 4 years, do we finally have a working solution to this problem?? I am on Arch and I have phonon-qt5-vlc installed. – the.polo Dec 03 '18 at 09:02
  • It works (in okular, evince, pympress etc). The only catch was the movie was invisible at first, and you need to click on it to start. – jadelord Sep 17 '19 at 08:00
  • I had a .flv video embedded using media9. First I thought it was not working, but then I noticed that I had to enter the presentation mode of Okular for it to be played. – ferdymercury Mar 23 '21 at 15:14
5

To complement BenC’s answer from the displaying side:

I found it necessary (at least on Ubuntu 14.04) to change the backend of Phonon (which is used by Okular to play videos) to the VLC one. For me it sufficed to install the respective package (phonon-backend-vlc on Debian-based Linuxes).

Wrzlprmft
  • 759