Bug 166646 - IMPRESS, SLIDESHOW, Display glitches when playing MP4 media video files with subtitles
Summary: IMPRESS, SLIDESHOW, Display glitches when playing MP4 media video files with ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
24.2.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Media-Playback
  Show dependency treegraph
 
Reported: 2025-05-19 14:15 UTC by Barry T
Modified: 2025-05-21 14:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Sample file for Impress video display glitch (21.42 MB, application/vnd.oasis.opendocument.presentation)
2025-05-19 14:42 UTC, Barry T
Details
Sample MP4 file with subtitles (21.41 MB, video/mp4)
2025-05-21 14:28 UTC, Barry T
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barry T 2025-05-19 14:15:07 UTC
Description:
Impress presentations that contain MP4 video files with subtitles show severe display glitches when in presentation mode. Removal of the subtitles from the video fixes the problem, and the video now plays normally.
Note that this is for Linux distros with GTK based desktops only; QT based desktops have different form of display glitches that will be the subject of a separate bug report.

Steps to Reproduce:
1. Create, or download, an MP4 video with subtitles (codec: tx3g)
2. Create an empty simple, two slide, presentation.
3. Add simple text title to first slide.
4. Add video file to second slide.
5. Save file.
6. Play presentation, with presenter console option selected.

Actual Results:
When you get to slide 2, the video plays with full screen glitches every few seconds. The playback frame rate is also slower than the original file.

Expected Results:
Play the video normally without glitching.


Reproducible: Always


User Profile Reset: No

Additional Info:
LO:
Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 12; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.4
Calc: threaded

Linux OS:
System:
  Kernel: 6.8.0-60-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: tsc
  Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7 dm: LightDM v: 1.30.0
    Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble
Machine:
  Type: Desktop System: LENOVO product: 11R8000DUK v: ThinkCentre M75s Gen 2
    serial: <superuser required> Chassis: type: 3 serial: <superuser required>
  Mobo: LENOVO model: 32E1 v: SDK0J40697 WIN 3305421093931 serial: <superuser required>
    part-nu: LENOVO_MT_11R8_BU_Think_FM_ThinkCentre M75s Gen 2 uuid: <superuser required>
    UEFI: LENOVO v: M46KT1EA date: 09/11/2021
CPU:
  Info: 6-core model: AMD Ryzen 5 PRO 5650G with Radeon Graphics bits: 64 type: MT MCP smt: enabled
    arch: Zen 3 rev: 0 cache: L1: 384 KiB L2: 3 MiB L3: 16 MiB
  Speed (MHz): avg: 1109 high: 3638 min/max: 400/4464 cores: 1: 400 2: 400 3: 2980 4: 400 5: 400
    6: 400 7: 3092 8: 3638 9: 400 10: 400 11: 400 12: 400 bogomips: 93423
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series] vendor: Lenovo driver: amdgpu
    v: kernel arch: GCN-5 pcie: speed: 8 GT/s lanes: 16 ports: active: DP-1,HDMI-A-1 empty: DP-2
    bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 35.0 C
  Device-2: Realtek FULL HD 1080P Webcam driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 bus-ID: 1-2.3:9 chip-ID: 0bda:5822 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: amdgpu
    unloaded: fbdev,modesetting,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3200x1080 s-dpi: 96 s-size: 846x285mm (33.31x11.22") s-diag: 893mm (35.15")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: primary,left model: Lenovo T2224zD serial: <filter>
    res: 1920x1080 hz: 60 dpi: 102 size: 476x267mm (18.74x10.51") diag: 546mm (21.5") modes:
    max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: right model: HannSpree/HannStar HN198D res: 1280x1024
    hz: 60 dpi: 86 size: 376x301mm (14.8x11.85") diag: 482mm (19") modes: max: 1280x1024 min: 720x400
  API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi device: 1 drv: swrast
    gbm: drv: kms_swrast surfaceless: drv: radeonsi x11: drv: radeonsi inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.2.8-1ubuntu1~24.04.1 glx-v: 1.4
    direct-render: yes renderer: AMD Radeon Graphics (radeonsi renoir LLVM 19.1.1 DRM 3.57
    6.8.0-60-generic) device-ID: 1002:1638
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel
    pcie: speed: 8 GT/s lanes: 16 bus-ID: 06:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo driver: N/A pcie: speed: 8 GT/s
    lanes: 16 bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel pcie:
    speed: 8 GT/s lanes: 16 bus-ID: 06:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Device-4: Lenovo T2224zD driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 1-2.4:10 chip-ID: 17ef:a005 class-ID: 0300 serial: <filter>
  API: ALSA v: k6.8.0-60-generic status: kernel-api
  Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8192EE PCIe Wireless Network Adapter driver: rtl8192ee v: kernel pcie:
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 03:00.0 chip-ID: 10ec:818b class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo RTL8111/8168/8411 driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1
    port: d000 bus-ID: 04:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0f0 state: down mac: <filter>
Drives:
  Local Storage: total: 938.73 GiB used: 172.28 GiB (18.4%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB size: 931.51 GiB
    speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: 2B2QEXM7 temp: 33.9 C scheme: GPT
  ID-2: /dev/sdb vendor: Generic model: Flash Disk size: 7.22 GiB type: USB rev: 2.0
    spd: 480 Mb/s lanes: 1 tech: SSD serial: <filter> fw-rev: 8.07 scheme: MBR
Partition:
  ID-1: / size: 136.45 GiB used: 15.89 GiB (11.6%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p1
  ID-3: /home size: 777.82 GiB used: 154.93 GiB (19.9%) fs: ext4 dev: /dev/nvme0n1p3
Swap:
  Alert: No swap data was found.
USB:
  Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 10 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-2:2 info: VIA Labs VL812 Hub ports: 4 rev: 2.1 speed: 480 Mb/s lanes: 1
    chip-ID: 2109:2812 class-ID: 0900
  Device-1: 1-2.1:4 info: CHERRY Keyboard type: keyboard,HID driver: cherry,usbhid interfaces: 2
    rev: 2.0 speed: 1.5 Mb/s lanes: 1 power: 100mA chip-ID: 046a:0023 class-ID: 0300
  Device-2: 1-2.2:5 info: Logitech Optical Wheel Mouse type: mouse driver: hid-generic,usbhid
    interfaces: 1 rev: 2.0 speed: 1.5 Mb/s lanes: 1 power: 100mA chip-ID: 046d:c016 class-ID: 0301
  Device-3: 1-2.3:9 info: Realtek FULL HD 1080P Webcam type: video driver: uvcvideo interfaces: 2
    rev: 2.0 speed: 480 Mb/s lanes: 1 power: 500mA chip-ID: 0bda:5822 class-ID: 0e02 serial: <filter>
  Device-4: 1-2.4:10 info: Lenovo T2224zD type: audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0 speed: 12 Mb/s lanes: 1
    power: 500mA chip-ID: 17ef:a005 class-ID: 0300 serial: <filter>
  Device-5: 1-3:11 info: Alcor Micro Flash Drive type: mass storage driver: usb-storage
    interfaces: 1 rev: 2.0 speed: 480 Mb/s lanes: 1 power: 200mA chip-ID: 058f:6387 class-ID: 0806
    serial: <filter>
  Device-6: 1-5:3 info: Realtek RTS5129 Card Reader Controller type: <vendor specific>
    driver: rtsx_usb,rtsx_usb_ms,rtsx_usb_sdmmc interfaces: 1 rev: 2.0 speed: 480 Mb/s lanes: 1
    power: 500mA chip-ID: 0bda:0129 class-ID: ff00 serial: <filter>
  Hub-3: 2-0:1 info: super-speed hub ports: 4 rev: 3.1 speed: 10 Gb/s lanes: 1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-4: 2-2:2 info: VIA Labs VL812 Hub ports: 4 rev: 3.0 speed: 5 Gb/s lanes: 1
    chip-ID: 2109:0812 class-ID: 0900
  Hub-5: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 3-1:2 info: Brother Industries DCP-J4120DW type: printer,mass storage
    driver: usb-storage,usblp interfaces: 3 rev: 2.0 speed: 480 Mb/s lanes: 1 power: 2mA
    chip-ID: 04f9:0339 class-ID: 0806 serial: <filter>
  Hub-6: 4-0:1 info: super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s lanes: 1 chip-ID: 1d6b:0003
    class-ID: 0900
  Hub-7: 5-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s lanes: 1
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-8: 6-0:1 info: super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s lanes: 1 chip-ID: 1d6b:0003
    class-ID: 0900
Sensors:
  System Temperatures: cpu: 40.8 C mobo: N/A gpu: amdgpu temp: 36.0 C
  Fan Speeds (rpm): N/A
Repos:
  Packages: 2209 pm: dpkg pkgs: 2189 pm: flatpak pkgs: 20
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //mirror.server.net/linuxmint/packages xia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu noble main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse
    5: deb http: //security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/softmaker.list
    1: deb [signed-by=/etc/apt/keyrings/softmaker.gpg] https: //shop.softmaker.com/repo/apt stable non-free
Info:
  Memory: total: 16 GiB note: est. available: 14.97 GiB used: 4.46 GiB (29.8%)
  Processes: 352 Power: uptime: 3h 56m states: freeze,mem,disk suspend: deep wakeups: 0
    hibernate: platform Init: systemd v: 255 target: graphical (5) default: graphical
  Compilers: gcc: 13.3.0 Client: Cinnamon v: 6.4.8 inxi: 3.3.34

This issue only affects GTK based desktops; QT based desktops show a different form of display glitch which will be the subject of a separate bug report.

This display glitch is repeatable across three different machines, both desktop and laptop, from two different manufacturers: Lenovo and HP.

I have also found the same display problem on the latest (Flatpak) version of LO: 25.2.3.2
Comment 1 Barry T 2025-05-19 14:42:18 UTC
Created attachment 200869 [details]
Sample file for Impress video display glitch

The subject Impress presentation file contains an example video that reproduces the display glitch when viewed as a slideshow presentation.
Comment 2 Andrew Kopf 2025-05-20 02:31:21 UTC
Thank you for the bug report Barry T,
This might be a completely separate bug, but the video in the sample file will not play in LibreOffice for me at all. It does open in MS PowerPoint and plays without issue.

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 22; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 3 Olivier Hallot 2025-05-20 12:13:16 UTC
The video plays very bad, glitches as well as the Esc key does not work but mouse button 2 can make the slide roll backward and then you can stop the presentation.

Also full screen is pittyful.

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: kf5 (cairo+wayland)
Locale: en-US (pt_BR.UTF-8); UI: en-US
Calc: threaded


Glitches in VCL-gen as well 

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: c3423850610b7fea7331647814e2719796fa088b
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: x11
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 4 Olivier Hallot 2025-05-20 12:26:30 UTC
(In reply to Barry T from comment #1)
> Created attachment 200869 [details]
> Sample file for Impress video display glitch
> 
> The subject Impress presentation file contains an example video that
> reproduces the display glitch when viewed as a slideshow presentation.

Can you please attach the MP4 video here? 

Or please report on running the video with the internal media player available in Tools -> Media Player. Thanks.
Comment 5 Barry T 2025-05-21 14:26:59 UTC
(In reply to Olivier Hallot from comment #4)
> (In reply to Barry T from comment #1)
> > Created attachment 200869 [details]
> > Sample file for Impress video display glitch
> > 
> > The subject Impress presentation file contains an example video that
> > reproduces the display glitch when viewed as a slideshow presentation.
> 
> Can you please attach the MP4 video here? 
> 
> Or please report on running the video with the internal media player
> available in Tools -> Media Player. Thanks.

Thank you for your reply.

Running the MP4 video with the internal media player also has the same glitches as the slideshow.

MP4 video with subtitles has been added.
Please note that the glitches go away if you use Handbrake, or similar, to remove the subtitles from the MP4 file. I can supply the same file but without subtitles if you require.
Comment 6 Barry T 2025-05-21 14:28:47 UTC
Created attachment 200897 [details]
Sample MP4 file with subtitles
Comment 7 Barry T 2025-05-21 14:36:38 UTC
(In reply to Olivier Hallot from comment #3)
> The video plays very bad, glitches as well as the Esc key does not work but
> mouse button 2 can make the slide roll backward and then you can stop the
> presentation.
> 
> Also full screen is pittyful.
> 
> Version: 25.2.3.2 (X86_64) / LibreOffice Community
> Build ID: bbb074479178df812d175f709636b368952c2ce3
> CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: kf5 (cairo+wayland)
> Locale: en-US (pt_BR.UTF-8); UI: en-US
> Calc: threaded
> 
> 
> Glitches in VCL-gen as well 
> 
> Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
> Build ID: c3423850610b7fea7331647814e2719796fa088b
> CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: x11
> Locale: pt-BR (pt_BR.UTF-8); UI: en-US
> Calc: threaded

I note from your reply that you are using kf5/qt desktop. I believe that this glitch bug is specific to the gtk desktop; I am using Linux Mint Cinnamon desktop with X11. The media playback behaviour is different on qt/KDE Plasma desktop, and I will create a new separate bug report for this behaviour on KDE Plasma.
Comment 8 Barry T 2025-05-21 14:37:40 UTC
(In reply to Andrew Kopf from comment #2)
> Thank you for the bug report Barry T,
> This might be a completely separate bug, but the video in the sample file
> will not play in LibreOffice for me at all. It does open in MS PowerPoint
> and plays without issue.
> 
> Version: 25.2.3.2 (X86_64) / LibreOffice Community
> Build ID: bbb074479178df812d175f709636b368952c2ce3
> CPU threads: 22; OS: Windows 11 X86_64 (10.0 build 26100); UI render:
> Skia/Raster; VCL: win
> Locale: en-US (en_US); UI: en-US
> Calc: CL threaded

It may be a separate bug; I believe my bug is Linux specific.