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.
Created attachment 179633 [details] Screenshot in design mode This is the screenshot in design mode, where the video is correctly placed.
Created attachment 179634 [details] Screenshot in presentation mode This shows how the video is misplaced in presentation mode.
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?
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
Created attachment 184752 [details] Screenshot during presentation Screenshot during presentation
Created attachment 184753 [details] In design mode In design mode
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
(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.)
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
Created attachment 184758 [details] Failing presentation with embedded video This is the presentation with the video embedded.
(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 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", so the one thing standing 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)?
(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.
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?