Bug 393014 - VideoWidget sizing in Presentation mode still not fixed
Summary: VideoWidget sizing in Presentation mode still not fixed
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-11 16:38 UTC by Kieran Ramos
Modified: 2018-04-11 18:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
PDF with "embedded" videos, a link to download the video is in PDF (3.08 MB, application/pdf)
2018-04-11 16:38 UTC, Kieran Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kieran Ramos 2018-04-11 16:38:36 UTC
Created attachment 111957 [details]
PDF with "embedded" videos, a link to download the video is in PDF

The VideoWidget size in presentation mode is not correct when multiple videos are present on separate pages of the PDF. I noticed a very recent commit: (Fix Presentation Mode VideoWidget sizing) 09109dd6498549dd27a8da1890da25c6aad4686a so I built okular from the source on the github mirror including that commit, but the problem still persists.

In more detail, I am making a PDF using the beamer package of LaTeX and on every frame (slide) I have one or two videos. When I go into presentation mode only the video(s) on the first slide and the slide I started presentation mode from are rendered the proper size. Videos on other slides are resized very small (presumably 100x30 according to that commit and this looks to be about the size I am seeing). If I start the presentation from a slide without video only the video on the first slide is the correct size and all other videos are resized small.

About my system:
I am running Ubuntu 16.04 with the KDE Neon User Edition repositories. Okular is compiled from source as of commit 824eeb11601a83f50c8082c040fc1f277c0309f8.

Okular Version 1.4.70
KDE Plasma Version 5.12.4
KDE Frameworks Version 5.44.0
Qt Version 5.10.0

How to repeat:
Download the attached PDF and then download the movie linked to in that pdf or here: http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_stereo.ogg
Put the movie in the same folder as the pdf with the exact same name as downloaded "big_buck_bunny_720p_stereo.ogg". Open the pdf and put it in presentation mode then scroll through video.

If you want to make the PDF yourself here is the latex code to make it, just put it in a file and run pdflatex on that file:


\documentclass{beamer}

\usepackage{default}
\usepackage{multimedia}
\usepackage{lmodern}

\begin{document}
	\begin{frame}
	\centering
	\href{http://download.blender.org/peach/bigbuckbunny_movies/big_buck_bunny_720p_stereo.ogg}{\color{blue}{Please download the movie by clicking here}} \\
	Put the movie in the same folder as this PDF \\
	This movie is the correct size
	\movie[width=10.66cm,height=6cm,poster,autostart]{}{big_buck_bunny_720p_stereo.ogg}
	\end{frame}

	\begin{frame}
	\centering
	The video below is played back the wrong size \\
	\movie[width=10.66cm,height=6cm,poster,autostart]{}{big_buck_bunny_720p_stereo.ogg}
	\end{frame}

	\begin{frame}
	This video has a image taken from the movie embedded in the PDF that remains the correct size after the playback has started. The video fill just the upper left corner \\
	\movie[width=10.66cm,height=6cm,autostart]{\includegraphics[width=10.66cm,height=6cm]{its-a-trap}}{big_buck_bunny_720p_stereo.ogg}
	\end{frame}
\end{document}
Comment 1 Albert Astals Cid 2018-04-11 17:28:23 UTC
Do you know how to run your own self compiled okular?

Otherwise I'm going to assume you did it wrong since it works just fine for me https://www.youtube.com/watch?v=nGce4msRs6s
Comment 2 Kieran Ramos 2018-04-11 17:36:33 UTC
I see, perhaps I am doing something wrong. I built Okular with CMake in a separate build directory, satisfied all requirements by installing devel pacakges from apt, installed to /usr/local, then used it from there.

I just found this page: https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source#kdesrc-build

I will follow those instructions and test.

Thanks.
Comment 3 Kieran Ramos 2018-04-11 17:58:54 UTC
I can confirm after following those build instructions Okular is working so my report must be INVALID.
Comment 4 Kieran Ramos 2018-04-11 18:19:55 UTC
For reference the problem with my original build was that QT_PLUGIN_PATH needs to be set to include /usr/local/lib/x86_64-linux-gnu/plugins. After setting that Okular works. Looking at the rest of the .setup-env script, probably QML_IMPORT_PATH and QML2_IMPORT_PATH should be set as well (since /usr/local/lib/x86_64-linux-gnu/qml isn't empty), but it wasn't necessary to get the video working. Simply add the following to your ~/.profile or ~/.bashrc:

export QT_PLUGIN_PATH="/usr/local/lib/x86_64-linux-gnu/plugins:$QT_PLUGINPATH"
export QML_IMPORT_PATH="/usr/local/lib/x86_64-linux-gnu/qml:$QML_IMPORT_PATH"
export QML2_IMPORT_PATH="$QML_IMPORT_PATH:$QML2_IMPORT_PATH"