Bug 342140 - poster option for embedded mp4 file (made with beamer + multimedia) fails- no image
Summary: poster option for embedded mp4 file (made with beamer + multimedia) fails- no...
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.17.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-22 22:22 UTC by lpearce
Modified: 2014-12-23 17:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
The .pdf made with beamer + multimedia (19.15 KB, application/pdf)
2014-12-22 22:23 UTC, lpearce
Details
The .mp4 video to be played in the pdf (28.53 KB, video/mp4)
2014-12-22 22:24 UTC, lpearce
Details
The LaTeX code to make the pdf (292 bytes, text/x-tex)
2014-12-22 22:25 UTC, lpearce
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lpearce 2014-12-22 22:22:06 UTC
I'm seeing a problem very similar to Bug 301603, except that one is fixed whereas mine is not.  I have an mp4 file I am embedding into a pdf presentation made using Beamer (in LaTeX, compiled with pdflatex) with the multimedia package.

I plan to attach a MWE of the LaTeX code, the resulting pdf, and the video, but here's the situation:

When embedding a video using the multimedia package, there is an option called "poster", in which case, the pdf viewer should display the first image of the video when it is not playing.  However, in okular, I have no image (although the box to click to play it is there, as if the poster option was not set).

Running okular from the command line gives these errors:

okular(19478)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
** (okular:19478): WARNING **: gstvideo: failed to get caps of pad xvimagesink1:sink

and when I run the video, the following message is output on the command line:

** (okular:19478): WARNING **: gstvideo: failed to get caps of pad xvimagesink0:sink

The mp4 file is one that I made myself, using avconv.  I have tried using different codecs, including -c:v mpeg4, -c:v msmpeg4 (giving a .asf file), and -c:v libx264.  I am happy to use different codecs, etc, provided that the final result plays with okular.  Please let me know if you would like a different version of the video, made with some specific codec.

The poster option for the multimedia package in beamer was supported as of 2012-08-19 (as per bug report 301603); I am running KDE 4.11.5 and Okular 0.17.5, which came out significantly after this.

Reproducible: Always

Steps to Reproduce:
1. Open pdf with okular
2. See that there's no image in the box to play video (you can find the box by moving the cursor around and seeing where it changes)

Actual Results:  
No image

Expected Results:  
The first frame of the video should be displayed when the video is not playing
Comment 1 lpearce 2014-12-22 22:23:29 UTC
Created attachment 90094 [details]
The .pdf made with beamer + multimedia

This is the pdf made with beamer and the multimedia package, to be opened in okular.  The .mp4 file must be in the same directory for okular to run it.
Comment 2 lpearce 2014-12-22 22:24:15 UTC
Created attachment 90095 [details]
The .mp4 video to be played in the pdf

This must be in the same directory as the pdf for okular to run it.
Comment 3 lpearce 2014-12-22 22:25:09 UTC
Created attachment 90096 [details]
The LaTeX code to make the pdf

This is the LaTeX code (compiled with pdflatex) that produces the attached pdf.  Note that the poster option is set in the \movie command.
Comment 4 Albert Astals Cid 2014-12-23 01:31:08 UTC
Works for me with okular 0.20.2 and phonon-gstreamer 4.8.1 + https://git.reviewboard.kde.org/r/121638/

Somehow it broke at some stage in phonon.
Comment 5 Albert Astals Cid 2014-12-23 15:09:31 UTC
Just pushed the phonon-gstreamer fix. Please reopen the bug if you can still reproduce it on okular >= 0.20.2 and phonon-gstreamer >= 4.8.2
Comment 6 lpearce 2014-12-23 17:45:57 UTC
Thank you!  It works now.