Bug 165710 - Portrait videos are rotated to landscape in Impress
Summary: Portrait videos are rotated to landscape in Impress
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 164846 (view as bug list)
Depends on:
Blocks: Media
  Show dependency treegraph
 
Reported: 2025-03-12 19:46 UTC by Matthias
Modified: 2026-01-24 19:25 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Vertical Video stretched when inserted (70.14 KB, application/vnd.oasis.opendocument.presentation)
2025-03-13 09:46 UTC, Matthias
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias 2025-03-12 19:46:53 UTC
Description:
When trying to insert a vertical video (e.g. from a phone in portrait mode, a TikTok etc.) into LibreOffice Impress, the video seems to be rotated to landscape (see also reports here: https://ask.libreoffice.org/t/i-want-to-insert-a-video-from-an-iphone-but-when-i-do-its-horizontal-instead-of-vertical-how-can-i-change-this/52959). I've also noticed that Impress basically slows to a halt when insertig the video.

Steps to Reproduce:
1.Open a new and empty Impress presentation.
2. Add a video in portrait orientation through Insert - Audio/Video

Actual Results:
The video appears to be rotated to landscape orientation, Impress slows to a halt.

Expected Results:
The video is inserted in portrait orientation.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.5.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 12; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: de-DE (de_DE.UTF-8); UI: de-DE
Ubuntu package version: 4:24.8.5-0ubuntu0.24.10.2
Calc: threaded
Comment 1 m_a_riosv 2025-03-12 22:08:33 UTC
Please attach a sample file, reduce the size as much as possible without private information.
Comment 2 Matthias 2025-03-13 09:46:57 UTC
Created attachment 199791 [details]
Vertical Video stretched when inserted
Comment 3 Matthias 2025-03-13 09:48:08 UTC
Trying to provide a sample file proved more difficult than expected, I'm sorry:
In some cases adding a vertical video file to the presentation just worked (for example when inserting this video https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c5/Blue_and_yellow_macaw_eating_a_peanut.webm/Blue_and_yellow_macaw_eating_a_peanut.webm.480p.vp9.webm into an empty slide).

In other cases LibreOffice froze and crashed (when trying to insert the original video from the same source (https://commons.wikimedia.org/wiki/File:Blue_and_yellow_macaw_eating_a_peanut.webm).

In some cases the video was stretched (so I think I was wrong about it being rotated, I just couldn't see properly in the original case because the video wasn't visible before the crash), which I think might depend on the slide template used (this is what happens in the file I have attached).

So in fact there might have been an interplay of several problems: LibreOffice crashing when inserting certain videos and LibreOffice stretching vertical videos to landscape mode when inserting them. 

I hope that helps and am sorry that I cannot be more helpful.
Comment 4 kalagg 2025-07-23 02:41:46 UTC Comment hidden (spam)
Comment 5 kalagg 2025-07-23 02:43:05 UTC Comment hidden (spam)
Comment 6 kalagg 2025-07-23 02:43:46 UTC Comment hidden (spam)
Comment 7 Axel Braun 2026-01-03 19:23:07 UTC
I was supposed to add a buggy video slide to this bug.
I had a presentation created with 24.8.x release (in Jan 2025) on Linux containing among others a portrait slide. At that time it displayed OK.

When I open this today with 
Version: 25.8.3.2 (X86_64) / LibreOffice Community
Build ID: 580(Build:2)
CPU threads: 22; OS: Linux 6.18; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: de-DE

it was still in portrait mode, but the first frame/picture was rotated, and the video is displayed rotated as well. 
As just this video was too large to upload to b.d.o I scaled it down and inserted it to a new slide, and - surprise - everything looked as it should.

It looks there was a mayor change in handling videos between the two releases, breaking all old presentations.
Let me know if you are interested in the broken presentation, I will provide a download link
Comment 8 Axel Braun 2026-01-03 19:24:39 UTC
(In reply to Axel Braun from comment #7)
> I was supposed to add a buggy video slide to this bug.
> I had a presentation created with 24.8.x release (in Jan 2025) on Linux
> containing among others a portrait slide. 

s/slide/video/
Comment 9 Buovjaga 2026-01-24 16:23:36 UTC
*** Bug 164846 has been marked as a duplicate of this bug. ***
Comment 10 Buovjaga 2026-01-24 16:24:23 UTC
The video attachment 199533 [details] can also be used for testing.
Comment 11 Buovjaga 2026-01-24 16:34:37 UTC
With attachment 199533 [details], also seen on Windows and already in oldest of 7.1 bibisect repo.