Bug 156051 - libreoffice-gtk3 package impairs SLIDESHOW of imported MPEG4 and AVI videos by IMPRESS
Summary: libreoffice-gtk3 package impairs SLIDESHOW of imported MPEG4 and AVI videos b...
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.3.7.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 13:05 UTC by Dave Poole
Modified: 2023-07-20 13:06 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Screen capture of slideshow showing the effect of libreoffice-gtk3 (883.01 KB, image/png)
2023-06-25 13:10 UTC, Dave Poole
Details
Inpress presentation for exhibiting the reported bug (10.66 MB, application/vnd.oasis.opendocument.presentation)
2023-07-19 16:05 UTC, Dave Poole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Poole 2023-06-25 13:05:25 UTC
Description:
Mint 21.1 by default installs LibreOffice with libreoffice-gtk3 1:7.3.7-0ubuntu0.22.  As long as this package is present, IMPRESS slideshows MPEG4 and AVI videos in left-justified monochrome, even though the default Celluloid viewer and VLC display them perfectly. Removing the subject package changes Impress' UI’s as expected, then mpeg4 and avi videos in the same presentation SLIDESHOW display and play properly. 

Steps to Reproduce:
1.Install libreoffice-gtk3 1:7.3.7-0ubuntu0.22 if not already present
2.Attempt slideshow of a presentation with an imported mpeg4 or avi video
3.Remove the subject package with APT, etc. 
4.Restart Impress, load presentation with video, and repeat

Actual Results:
While libreoffice-gtk3 1:7.3.7-0ubuntu0.22 is present, IMPRESS slideshows imported MPEG4 and AVI videos in left-justified monochrome, sometimes over a color still of the first frame as shown prior to starting the SLIDESHOW.

Expected Results:
After the subject package is removed and Impress is restarted, the same presentation file with imported videos slideshows perfectly. 


Reproducible: Always


User Profile Reset: Yes

Additional Info:
7.3.7.2 / LibreOffice Community
CPU threads:4;OS:Linux 5.15
UI render:default; VCL:gtk3
en-US(en_US.UTF-8;UI:en-US
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.3
Calc:threaded

Same with the subject package removed except VCL:x11
Comment 1 Dave Poole 2023-06-25 13:10:43 UTC
Created attachment 188083 [details]
Screen capture of slideshow showing the effect of libreoffice-gtk3
Comment 2 Stéphane Guillou (stragu) 2023-07-18 08:19:30 UTC
Thank you, Dave.
LO 7.3 and 7.4 won't see further bugfix versions.
Can you please test again with LO 7.5?
https://www.libreoffice.org/download/download-libreoffice/
It can be installed alongside your current version.
Comment 3 Dave Poole 2023-07-18 16:13:52 UTC
Removed LO v7.3.7.2 in its entirety, including package libreoffice-gtk3 1:7.3.7-0ubunto0.22
Downloaded and installed LO 7.5.4.2-2.
Ran Impress, confirmed version was 7.5.4.2
Loaded same presentation and observed the identical bug in screenshow
Noted UI render:default;VCL:gtk3, though libreoffice-gtk3 was no longer a package that could be removed in order to resolve the bug
Removed LO v7.3.7.2 and reinstalled v7.3.7.2
Removed libreoffice-gtk3 to restore usable screenshow.
Comment 4 Stéphane Guillou (stragu) 2023-07-19 12:55:48 UTC
Not reproduced with and avi file and:

Version: 7.5.5.2 (X86_64) / LibreOffice Community
Build ID: ca8fe7424262805f223b9a2334bc7181abbcbf5e
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Probably related: bug 117945

Which video card do you use? Do you have all your packages / drivers up to date?

Can you please provide an example file with a video embedded, so we can test with similar conditions?
Comment 5 Dave Poole 2023-07-19 16:05:32 UTC
Created attachment 188471 [details]
Inpress presentation for exhibiting the reported bug
Comment 6 Dave Poole 2023-07-19 16:09:34 UTC
Package Index Updated and all Packages upgraded
Repeated cold install of LO 7.5.4.2-2
Started Impress, loaded ImpressBugTest.odp, attempted slideshow
Bug observed as previously reported

Mint 21.1 Driver Manager identified "No Drivers Needed"
    
/$ sudo lspci -vnn | grep VGA -A 12
[sudo] password for dave:       
00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller])
	DeviceName:  Onboard IGD
	Subsystem: Dell HD Graphics 5500 [1028:062d]
	Flags: bus master, fast devsel, latency 0, IRQ 48
	Memory at f6000000 (64-bit, non-prefetchable) [size=16M]
	Memory at e0000000 (64-bit, prefetchable) [size=256M]
	I/O ports at f000 [size=64]
	Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
	Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
	Capabilities: [d0] Power Management version 2
	Capabilities: [a4] PCI Advanced Features
	Kernel driver in use: i915
	Kernel modules: i915
	
/$ inxi -G
Graphics:
  Device-1: Intel HD Graphics 5500 driver: i915 v: kernel
  Device-2: Sunplus Innovation Laptop Integrated Webcam HD type: USB
    driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 resolution: 1920x1080~60Hz
  OpenGL: renderer: Mesa Intel HD Graphics 5500 (BDW GT2)
    v: 4.6 Mesa 22.2.5-0ubuntu0.1~22.04.3
Comment 7 Stéphane Guillou (stragu) 2023-07-20 06:36:05 UTC
Thanks for the info and file, Dave.

At first I could not play the video in Impress, only scrub it, but the same would happen with the default media player on GNOME with the extracted file, which used the H.264 (High Profile) codec.
I then installed a bunch of packages, hoping I was missing a decoder, including:

libavcodec-extra gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav ubuntu-restricted-extras libdvdnav4 libdvdread7 libdvd-pkg

(some of them I already had)

After a reboot, the video plays without a problem, in and outside of LibreOffice.

Can you see what media decoders you might be missing for Linux Mint, given that LO relies on the system's libraries for media? VLC bundles decoders, so maybe also test playing the same video with the default Mint media player to see if the same issue is seen there.
Comment 8 Dave Poole 2023-07-20 11:54:15 UTC
All of the codecs you named were already present on my system except ubuntu-restricted-extras and libdvd-pkg.  Installing those two had no effect on Impress 7.5 after reboots. libdvdread7 is not available in the Mint sources.

The test video I submitted plays flawlessly in VLC and Mint's default Celluloid front end for MPV.

GNOME's totem viewer, however, displays only the narrow, monochrome video I described previously including after the two above codecs were installed. 

If the slideshow of the test presentation I submitted is advanced into Slide 2, Impress 7.5 superimposes the narrow monochrome video over a static color frame video.  It must have distracted me from noting the latter's being static.

If the first blank slide is removed so the slideshow begins with the inserted video, only the narrow monochrome is displayed.

I opened a new presentation in Impress 7.5 and attempted to insert other .avi and .mp4 videos. If the video was over 4MB or so, doing so caused Impress 7.5 to display a white slideshow or crash.  All played perfectly in VLC or Celluloid.  Totem displayed a 2.3MB one in narrow monochrome, reported the others which were larger as not existing.
Comment 9 Stéphane Guillou (stragu) 2023-07-20 13:06:00 UTC
Right, so if the issue is also visible in Totem, we'll have to call this bug "not our bug" and figure out why the video can't be decoded properly on your system.

You can try playing the video from the command line with:

totem video.avi

... and see if it outputs anything interesting.

Totem's "could not be found" issue seems to be known:
https://askubuntu.com/questions/1406254/after-installing-ubuntu-22-04-the-default-video-player-is-unable-to-play-any-vi

You can see if uninstalling this package helps:

sudo apt remove gstreamer1.0-vaapi

Further issues with that might be best discussed on a Linux Mint forum?

Regarding LO 7.5 crashing:
It would be great if you could report the issue in a separate report, attaching the video sample. Do you get a crash report when restarting LO? If so, please link to it too.
Thanks for your help figuring it all out!