Bug 324167 - Okular does not play movies in pdfs embedded using LaTeX & movie15
Summary: Okular does not play movies in pdfs embedded using LaTeX & movie15
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-28 13:51 UTC by Oliver Sander
Modified: 2015-08-12 20:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: KDE Applications 15.08.0


Attachments
Test file (1.08 MB, application/pdf)
2013-08-28 13:52 UTC, Oliver Sander
Details
The corresponding tex sources (2.51 KB, text/x-tex)
2013-08-28 13:53 UTC, Oliver Sander
Details
The movie (1.70 MB, video/x-msvideo)
2013-08-28 13:53 UTC, Oliver Sander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Sander 2013-08-28 13:51:58 UTC
I have pdfs containing movie files, created using LaTeX and the movie15 package.  These movies fail to play when I click on them.  Instead, every time I click I get the output 

evaluate() threw an exception

Additionally, at startup I get

[0x2976558] main services discovery error: no suitable services discovery module

(but that may as well be unrelated).

Movies which have the autostart flag enabled do play.

This may be a poppler issue, but I don't know how to find out.

Playing this kind of embedded movies used to work, but I haven't used it in a long time.  If need be I can try to bisect.

Reproducible: Always
Comment 1 Oliver Sander 2013-08-28 13:52:38 UTC
Created attachment 81993 [details]
Test file
Comment 2 Oliver Sander 2013-08-28 13:53:06 UTC
Created attachment 81994 [details]
The corresponding tex sources
Comment 3 Oliver Sander 2013-08-28 13:53:40 UTC
Created attachment 81995 [details]
The movie
Comment 4 Albert Astals Cid 2013-08-28 18:48:34 UTC
It'd be cool to know:
a) If you updated poppler meanwhile
b) if you can bisect okular and see if it's an okular-only problem
Comment 5 Oliver Sander 2013-08-28 19:47:11 UTC
My poppler is the git head, compiled from source.

I'll try to find some time to bisect okular.  It must have worked about a year ago, when Tobias implemented the movie stuff.
Comment 6 Oliver Sander 2013-08-28 22:18:17 UTC
I've spent an hour trying to bisect, but I cannot resurrect a version that works.  The discussion in  https://bugs.kde.org/show_bug.cgi?id=300942 shows that the feature must have worked in August 2012.  But I have checked out poppler + okular from around that time, and I still get precisely the same behavior as described above.  So either I am doing something stupid (never to be ruled out), or this problem isn't directly caused by okular/poppler (but I am on Debian wheezy --> few things have changed there recently).

Could somebody please try to reproduce the bug?
Comment 7 Albert Astals Cid 2013-08-28 23:21:37 UTC
You mean page 2, right? Yeah i can't get it to play.
Comment 8 Oliver Sander 2013-11-01 22:20:55 UTC
Okay, I couldn't bisect because my system was messed up.  Now I have fixed that, and bisection tells me

sander@affe:~/okular$ git bisect good
77ccbbcbaae2eb8e93dc3a8852d754164477d538 is the first bad commit
commit 77ccbbcbaae2eb8e93dc3a8852d754164477d538
Author: Tobias Koenig <tokoe@kde.org>
Date:   Thu Sep 27 13:00:20 2012 +0200

    Create proper ScreenAnnotations in poppler generator
    
    REVIEW: 106605

:040000 040000 7408e578c9890dac7c0be5d2d5fcc8b119749ca3 7ff1dfba49bd66e4e5890334f4b772dd35087caa M generators
sander@affe:~/okular$ 

Note that I bisected okular only.  During all bisection steps, I used poppler from the current git master.
Comment 9 Oliver Sander 2015-08-12 10:44:41 UTC
Tobias König posted a patch at https://git.reviewboard.kde.org/r/124709/

I tested it and it seems to work nicely.
Comment 10 Albert Astals Cid 2015-08-12 20:43:02 UTC
Git commit b683889c3ad3cd64500e7b3ba53d0da50508bb09 by Albert Astals Cid, on behalf of Tobias Koenig.
Committed on 12/08/2015 at 20:42.
Pushed by aacid into branch 'Applications/15.08'.

Fix play back of video with rendition link

Process the operations of the rendition link independently of whether
there is a JS script or not. Most of the time the JS script won't be
executed correctly anyway, since Okular is missing most of the JS API,
so we should fall back on the given operations.
FIXED-IN: KDE Applications 15.08.0

M  +2    -4    core/document.cpp

http://commits.kde.org/okular/b683889c3ad3cd64500e7b3ba53d0da50508bb09