After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 573748 - Movies embedded in LaTeX with movie15 do not play
Movies embedded in LaTeX with movie15 do not play
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 645608 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-03-02 12:53 UTC by Ernst
Modified: 2017-10-18 16:49 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
movie.pdf: sample PDF file with embedded movie (282.17 KB, application/pdf)
2010-01-10 08:04 UTC, Behnam Esfahbod
  Details
Experimental patch adding Movie support. (190.32 KB, patch)
2010-05-05 21:37 UTC, José Aliste
none Details | Review
First patch: add ev_view_put_at_doc_rect. (3.61 KB, patch)
2011-02-17 15:47 UTC, José Aliste
reviewed Details | Review

Description Ernst 2009-03-02 12:53:17 UTC
Please describe the problem:
I'm using LaTeX to make reports and presentations (using the beamer class). In my presentations, I'd like to include movies to show them to my public. LaTeX has a package 'movie15' which introduces this functionality into LaTeX. Acrobat Reader can show those movies on Windows and Mac OSX, but not on Linux.

Steps to reproduce:
1. Make a LaTeX presentation file with a movie:
\documentclass{beamer}
\usepackage{movie15}

\title{Movie}
\begin{document}
\begin{frame}
 \includemovie{640pt}{480pt}{Filmpje.avi}
\end{frame}
\end{document}
2. Open the file with evince



Actual results:
No movie is shown (instead an empty space)

Expected results:
To see the movie I specified in the LaTeX source file

Does this happen every time?
Yes

Other information:
Comment 1 Raphael 2009-03-06 13:32:09 UTC
I'm using ubuntu 8.10/Gnome and envice as my default pdf/djvu viewer.

I get exactly the same result as was discussed above by Ernst. I complile a very similar latex code, and envice dont show the movie (.avi,.mpg,etc). It seems that linux pdf viewers cannot play embedded multimidia yet. 

I'd appreciate if envince could play a embedded multimidia.

Thanks.
Comment 2 Louis 2009-03-07 11:18:28 UTC
I'm using Debian Lenny, Ubuntu Intrepid and Ubuntu Jaunty. 
Evince is usually my default pdf viewer.
As Ernst and Raphael, I use LaTeX/Beamer to make presentations and wanted now to add external animations to my presentations.

Using pdf is a much better solution for sharing documents even than OpenDocument, so embedding animations on this documents is an important feature.

This functionnality seams to exist since Acrobat 5.0.

Adobe(tm) add the silly idea to make animations work only with RealPlayer(tm), witch couldn't be a worst choice, and it is not usable at all with GNU/Linux.

Making Evince able to read animations on pdf documents would be really great.
It seems to be on the "todolist" of Okular.

Thanks.

Comment 3 Alex Cornejo 2009-07-08 16:43:11 UTC
This clearly happens with the latest version of evince, why is this bug still "unconfirmed"? I am sure the developers of evince are aware that this feature is not implemented, please at least change to confirmed.
Comment 4 gianluca 2009-10-15 12:47:28 UTC
I would like to confirm an additional strong interest in this feature. I moved from Kubuntu to Ubuntu and lost the possibility to play my video !

Under Kubuntu I had:

Latex+beamer+multimedia packgae +okular

under ubuntu I tried almost all the possibilities (both multimedia and movie15), okular, acrobat and evince and none is working.

Of course it would be better to have the gnome pdf viewer playing videos instead of trying to install code from the medibuntu repository.

Thanks,
gianluca
Comment 5 Tobias Mueller 2010-01-10 05:24:15 UTC
Can anybody please upload a (small!) sample PDF file?
Also, what is the last version this bug can be confirmed against?
Thanks in advance
Comment 7 Behnam Esfahbod 2010-01-10 08:24:25 UTC
About the sample file, I should note that Adobe Acrobat 9 (for Linux) shows output.avi as an attachment and I can save it separately, although it didn't play it inplace.

But opening it in Evince, the Attachments sidebar is still disabled.

I'm testing on 2.28.1 (Ubuntu 9.10).
Comment 8 José Aliste 2010-05-05 21:37:34 UTC
Created attachment 160383 [details] [review]
Experimental patch adding Movie support.

In evince git master with poppler git master, there is support for file attachments. The following is a EXPERIMENTAL patch adding support for Screen Annotations with media rendition actions (which is the way movie15 embeds video in pdf). 

Please, this patch is EXPERIMENTAL, the view code is fairly ugly, but the libdocument code and backend are better, but still no promises it won't crash (and for the moment the patch  only supports one movie per pdf)... I attach it in hope that someone wants to improve it. 

I also mention that the patch uses the GtkVideoWidget from David Schleef (in particular, I don't know how this file is licensed, although a big chunk of it is included in the Gstreamer Base Plugin reference Manua, so there should be no problems to include it in Evince)
Comment 9 José Aliste 2011-02-17 15:47:59 UTC
Created attachment 181135 [details] [review]
First patch: add ev_view_put_at_doc_rect.
Comment 10 Carlos Garcia Campos 2011-02-21 19:22:21 UTC
(In reply to comment #9)
> Created an attachment (id=181135) [details] [review]
> First patch: add ev_view_put_at_doc_rect.

Thanks for the patch, I've just pushed a different patch based on this idea, see:

http://git.gnome.org/browse/evince/commit/?id=de237e03970b02ee0823c79a3917d3d45aba999b
Comment 11 José Aliste 2011-02-21 19:47:56 UTC
Carlos, thanks for adapting the patch. The next thing I have in mind in preparation for this is to let the FormWidgets to hide themselves when losing focus instead of letting ev_view to remove them all from itself... since when the widgets for Screen Annotations and Movie Annotations are there, the remove them all won't work. What do you think?
Comment 12 Carlos Garcia Campos 2011-02-22 07:55:28 UTC
Yes, I noticed it yesterday too, ev_view_remove_all() doesn't make sense and it won't work if there are other widgets that are not form fields.
Comment 13 José Aliste 2011-03-24 00:07:26 UTC
*** Bug 645608 has been marked as a duplicate of this bug. ***
Comment 14 Carlos Garcia Campos 2011-06-19 14:32:22 UTC
José, what's the status of this?
Comment 15 José Aliste 2011-06-21 16:08:55 UTC
I haven't work on this for sometime... Anyway, there is a branch with the work so far in github. The libdocument part is more or less finished.
Comment 16 André Klapper 2011-08-24 20:17:36 UTC
I can click on the placeholder of the embedded movie in evince 2.32.0 and it opens the video in totem (the movieplayer).
Can this be closed as FIXED?
Comment 17 John Stowers 2011-08-24 20:21:07 UTC
(In reply to comment #16)
> I can click on the placeholder of the embedded movie in evince 2.32.0 and it
> opens the video in totem (the movieplayer).
> Can this be closed as FIXED?

IMO nope, I'd like the movie to play inline - as powerpoint / acrobat do.
Comment 18 José Aliste 2011-08-24 21:32:19 UTC
André, this is definitely not fixed, as John points out, the pdf spec talks about having an embeded video player.
Comment 19 Carlos Garcia Campos 2015-05-27 13:11:39 UTC
I've just pushed an initial implementation of PDF multimedia to git master, supporting both Movie and Screen annotations. But like with the links and forms, videos are not considered annotations internally.
Comment 20 bruno.n.pagani 2017-10-18 16:49:12 UTC
I’m not sure what is the status here.

Using Evince 3.26, I’m facing different issues:

1. https://bugzilla.gnome.org/show_bug.cgi?id=661618
2. The player is not inline (actually it opens mpv on my system, not sure whether that’s expected)
3. I cannot launch the video while in presentation mode.
4. After viewing a video an annotation box opens, which is annoying.

Should I open new bugs for 2+?