Bug 301607

Summary: Movie poster image not shown in pdf created with LaTeX and the movie15 package
Product: [Applications] okular Reporter: Oliver Sander <oliver.sander>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: alinm.elena, pancho.s, tokoe
Priority: NOR    
Version: 0.14.80   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Bug Depends on: 306855    
Bug Blocks:    
Attachments: Example file, compiled with pdflatex
The LaTeX source file
Example movie file

Description Oliver Sander 2012-06-10 21:45:07 UTC
The LaTeX 'movie15' package allows to embed movie files in pdf documents. One of its option, viz. the 'poster' argument, requests that the first image of the movie be shown when the movie is not actually playing. This does not work. The movie plays when you click on it, but before the first frame is not shown. 
Since presumably you need snapshot support in the phonon backend for this, I installed the development trunk of phonon-backend-vlc.  Still no poster, though.

Reproducible: Always
Comment 1 Oliver Sander 2012-06-10 21:45:58 UTC
Created attachment 71714 [details]
Example file, compiled with pdflatex
Comment 2 Oliver Sander 2012-06-10 21:46:21 UTC
Created attachment 71715 [details]
The LaTeX source file
Comment 3 Oliver Sander 2012-06-10 21:46:43 UTC
Created attachment 71717 [details]
Example movie file
Comment 4 Tobias Koenig 2012-10-25 06:45:14 UTC
The PDFs that are rendered with latest movie15 package use ScreenAnnotations with Rendition objects to implement the creation of the MediaPlayer, auto-start the movie, show a poster image etc. With commit 6dddb7eff892702080ab61bdb414896e14dd4585 the foundation has been implemented. The JavaScript code associated with the Rendition objects of ScreenAnnotations, is evaluated by the JSEngine now.

However the objects and callbacks used in the JavaScript code are not provided by Okular yet (see http://www.adobe.com/devnet/acrobat/pdfs/js_api_reference.pdf for reference), so the engine always reports an error.
Implementing these objects and callbacks in Okular and publish them to the JavaScript environment would be the next steps to solve this bug.

Recommended process: Since the MediaPlayer and callback API is quite extensive, I'd recommend to analyze the JS that is embedded in the PDF, extract the API that is actually used by these scripts and than implement only that API for the moment.
Comment 5 Bernd Oliver Sünderhauf 2012-12-03 11:40:33 UTC
Confirm and add tracking by the JS metabug.
Technically, a wishlist item because never implemented.
Comment 6 Alin M Elena 2013-07-03 11:25:59 UTC
this bug is still open...
at the date of writing this post I can play films  in pdfs using okular. however seem to be quite few issues that prevent using it properly...
shall I open separate bugs? or is simply still work in progress..
Comment 7 Alin M Elena 2013-07-03 11:30:05 UTC
also according to ctan movie15 is obsolete and one shall move to media9...
Comment 8 Oliver Sander 2013-07-03 15:35:09 UTC
Movie support is still incomplete, and AFAIK nobody is working on it right now.  You are welcome to file bugreports if you found bugs.  Some of your problems may go away if you switch to another phonon backend.

I find the message that movie15 is obsolete pretty premature.  media9 requires flash support from the pdf viewer, and I don't see that coming in okular/poppler any time soon...