Bug 148642 - Embedded videos in Impress do not scale in presentation mode (4k display)
Summary: Embedded videos in Impress do not scale in presentation mode (4k display)
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.2.6.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: HiDPI
  Show dependency treegraph
 
Reported: 2022-04-18 07:25 UTC by Cristiano Bozza
Modified: 2024-04-15 19:41 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot in design mode (791.01 KB, image/png)
2022-04-18 07:33 UTC, Cristiano Bozza
Details
Screenshot in presentation mode (749.18 KB, image/png)
2022-04-18 07:33 UTC, Cristiano Bozza
Details
Failing presentation (24.70 KB, application/vnd.oasis.opendocument.presentation)
2023-01-18 15:12 UTC, Cristiano Bozza
Details
Screenshot during presentation (477.16 KB, image/png)
2023-01-18 15:12 UTC, Cristiano Bozza
Details
In design mode (1.00 MB, image/png)
2023-01-18 15:13 UTC, Cristiano Bozza
Details
This should be placed in the same directory as the presentation (17.01 MB, video/mp4)
2023-01-18 15:14 UTC, Cristiano Bozza
Details
Failing presentation with embedded video (17.04 MB, application/vnd.oasis.opendocument.presentation)
2023-01-18 16:13 UTC, Cristiano Bozza
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristiano Bozza 2022-04-18 07:25:19 UTC
Description:
If I add a video in an Impress presentation, it scales correctly in design mode, but when in presentation mode it is shown usually smaller and in a wrong position on displays with HiDPI.

Steps to Reproduce:
1. Pick a laptop with 4k display capabilities
2. Ensure the display is working in 4k (the problem does not show up if the display is downscaled to 1920x1280)
3. Make a presentation with Impress (even one slide suffices)
4. Add a video from another source on the slide.
5. Run the presentation

Actual Results:
The video will show in a wrong position and with smaller size.

Expected Results:
The video should appear and play exactly in the same position of the slide as in the design mode.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This problem shows up on any Dell XPS-13 (several versions), plus some desktops.
I add that this bug is at least as old as version 6.2 of LibreOffice and affects all the versions I've used so far.
Comment 1 Cristiano Bozza 2022-04-18 07:33:07 UTC
Created attachment 179633 [details]
Screenshot in design mode

This is the screenshot in design mode, where the video is correctly placed.
Comment 2 Cristiano Bozza 2022-04-18 07:33:37 UTC
Created attachment 179634 [details]
Screenshot in presentation mode

This shows how the video is misplaced in presentation mode.
Comment 3 Gerald Pfeifer 2023-01-18 08:52:00 UTC
I tried with two different MP4s using 

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5b3fd1af1247d4096451e5a768c3438fbccec2b2
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US

and

Version: 7.3.8.0.0+ / LibreOffice Community
Build ID: 0f7fb0a2decec3f8869098ae5e47ee6055545486
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

down to

Version: 6.4.8.0.0+
Build ID: 99b065ec31d032fc08ab14f66430dac4fef904a5
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:libreoffice-6-4, Time: 2020-10-08_08:57:08
Locale: en-US (en_US.UTF-8); UI-Language: en-US

and could not reproduce this following the instructions provided.

Display is 3840x2160 (where other HiDPI issues have shown).


If this still reproduces for you, can you share the reproducer document?
Comment 4 Cristiano Bozza 2023-01-18 15:12:13 UTC
Created attachment 184751 [details]
Failing presentation

This is a presentation that fails to show correctly in presentation mode.
The video comes from https://jsoncompare.org/LearningContainer/SampleFiles/Video/MP4/Sample-MP4-Video-File-Download.mp4 
Screenshot and file attached.
I am on Linux Mint 20.3
Comment 5 Cristiano Bozza 2023-01-18 15:12:59 UTC
Created attachment 184752 [details]
Screenshot during presentation

Screenshot during presentation
Comment 6 Cristiano Bozza 2023-01-18 15:13:22 UTC
Created attachment 184753 [details]
In design mode

In design mode
Comment 7 Cristiano Bozza 2023-01-18 15:14:17 UTC
Created attachment 184754 [details]
This should be placed in the same directory as the presentation

This should be placed in the same directory as the presentation
Comment 8 Gerald Pfeifer 2023-01-18 15:44:15 UTC
(In reply to Cristiano Bozza from comment #4)> 
> This is a presentation that fails to show correctly in presentation mode.

(In reply to Cristiano Bozza from comment #7)
> This should be placed in the same directory as the presentation

Ah, so the crucial difference is that you do not embed the video,
rather reference it from the document?


Can you please share how exactly you go about 
"4. Add a video from another source on the slide."?

And what version of LibreOffice you are using, similar to what I put
in comment #3? (You'll find that in "Help" - "About Libreoffice".)


(When I open the test document, it just shows a placeholder, even though
the video is in the same directory and plays if I insert it via "Insert"
- "Audio or Video...", so not a codec issue.)
Comment 9 Cristiano Bozza 2023-01-18 16:12:51 UTC
It is the same if the video is in the presentation.
Attachment coming.

Version: 7.4.0.3 / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: gtk3
Locale: it-IT (it_IT.UTF-8); UI: it-IT
Calc: threaded
Comment 10 Cristiano Bozza 2023-01-18 16:13:43 UTC
Created attachment 184758 [details]
Failing presentation with embedded video

This is the presentation with the video embedded.
Comment 11 Gerald Pfeifer 2023-01-18 16:28:55 UTC Comment hidden (obsolete)
Comment 12 Gerald Pfeifer 2023-01-18 16:33:25 UTC
(In reply to Cristiano Bozza from comment #10)
> This is the presentation with the video embedded.

Great, thank you. Sadly (or maybe ultimately good news), both with

  Version: 7.4.3.2 / LibreOffice Community
  Build ID: 40(Build:2)
  CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
  Locale: en-US (en_US.UTF-8); UI: en-US

from openSUSE Tumbleweed and the Document Foundation build

  Version: 7.4.5.0.0+ / LibreOffice Community
  Build ID: 286181de69590f5e8d7f576dd99b12554760a7b0
  CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
  Locale: en-US (en_US.UTF-8); UI: en-US

everything looks as it should.

I don't see how the kernel version or language (it vs en) would make
a difference, and we both have "UI render: default; VCL: gtk3". The
one difference standing out is the version: 7.4.0.3 is rather old, as
in: early in the 7.4 release cycle. Any chance you can try a newer
version (of 7.4 or 7.5)?

There are daily builds available at https://dev-builds.libreoffice.org/daily/
you could try if you distro doesn't have anything newer.
Comment 13 Cristiano Bozza 2023-01-18 17:16:50 UTC
I think the kernel is the clue. It works pretty well for me if I step back to 1920x1080, and the codec might be related to the way the kernel represents the screen. Do you have instead some Ubuntu-related distro to test?