Bug 117945 - Videoclip flickering during full screen presentation (GTK3)
Summary: Videoclip flickering during full screen presentation (GTK3)
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.0.3.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL: https://www.dropbox.com/s/co6frgbaxai...
Whiteboard:
Keywords:
Depends on:
Blocks: Media-Playback GTK3
  Show dependency treegraph
 
Reported: 2018-05-31 22:43 UTC by Luca Della Santina
Modified: 2023-12-05 17:53 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example video (443.61 KB, video/mp4)
2018-07-12 14:12 UTC, Buovjaga
Details
presentation with previous video for test. (455.42 KB, application/vnd.oasis.opendocument.presentation)
2018-08-20 16:07 UTC, Regis Perdreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Della Santina 2018-05-31 22:43:25 UTC
Description:
Videoclip playback during full-screen presentation has very noticeable flickering in the area of the videoclip.

Steps to Reproduce:
1.Include this MPEG4 videoclip in a slide https://www.dropbox.com/s/co6frgbaxaisdmi/Crossfade.m4v?dl=0

2.Play the presentation full screen


Actual Results:  
The videoclip will play but the image within the area of the videoclip has clear flickering instead of a smooth crossfade transition among frames.

Expected Results:
Smooth playback, no flickering


Reproducible: Always


User Profile Reset: Yes



Additional Info:
The video plays without flickering if played during edit mode of the slide, or with libreoffice's internal player.

The bug happens only when presenting in fullscreen mode.


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36
Comment 1 Roman Kuznetsov 2018-06-03 13:50:34 UTC Comment hidden (obsolete)
Comment 2 Jean-Baptiste Faure 2018-06-03 17:06:24 UTC Comment hidden (obsolete)
Comment 3 Buovjaga 2018-07-12 14:12:16 UTC
Created attachment 143519 [details]
Example video

I confirm it shows white flashes sometimes

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: bd394492c165d27c96a44495d9ca694a242acb8f
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on July 11th 2018
Comment 4 Roman Kuznetsov 2018-07-12 14:25:51 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2018-07-12 14:48:27 UTC Comment hidden (obsolete)
Comment 6 Roman Kuznetsov 2018-07-12 15:32:15 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2018-07-12 16:14:25 UTC
(In reply to kompilainenn from comment #6)
> I did not install any codecs in OS

Then the error is not a bug.
Comment 8 Regis Perdreau 2018-08-20 12:20:38 UTC
Ok, i have reproduced it
with Nvidia 390.48 driver and GT1030, linux mint 19
Version: 6.0.3.2
Build ID: 1:6.0.3-0ubuntu1
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 


In fact, the screen is already flickering when inserting mp4 video.
I have noticed no flicker when playing presentation but the video is always full screen with a green border. (size parameter seems useless)
Comment 9 Regis Perdreau 2018-08-20 16:07:36 UTC
Created attachment 144333 [details]
presentation with previous video for test.

A simple odb file sample with mp4 video in for test
Comment 10 Regis Perdreau 2018-08-20 16:50:29 UTC
Sorry, my test file contains draft slides, only the first slide is relevant.

On my linux mint 19 system, gstreamer1.0-gtk3 was not installed. Libreoffice succeed to play the video, but in full screen only. 

With  gstreamer1.0-gtk3 , the size and position of video is correct, with one little flickering moment at the beginning.
The video color transition seems to be smooth as expected.
Comment 11 Regis Perdreau 2018-08-21 01:55:54 UTC Comment hidden (obsolete)
Comment 12 Buovjaga 2018-08-21 07:30:39 UTC
(In reply to Regis Perdreau from comment #11)
> In Libreoffice Menu Tools->options->LibreOffice Impress-> General, uncheck
> "use background cache".  It seems to reduce flickering to nothing.

I still get one flicker at the beginning even with this setting unchecked.
I don't get many flickers with it checked either - it flickers mainly at the beginning.

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: 401cba4c20fbc930f034168872642428d7459218
CPU threads: 8; OS: Linux 4.18; UI render: default; VCL: gtk3_kde5; 
Locale: fi-FI (fi_FI.UTF-8); Calc: threaded
Built on August 20th 2018
Comment 13 chomisyann 2019-08-04 13:37:51 UTC
I have exactly the same problem ( 4 August 2019)
Running up to date Ubuntu Mate 18.04 and Libreoffice 6.0.7.3.

It flickers with videos in *.MP4 produced by Kazam.

When I convert them with VLC in video "Theora"+ ogg it works .
Meaning the flickering doesn t not appear with codec Theora (Ogg)

But the in Edit mode you get a question mark for the video image ;)
Comment 14 Pjotr 2020-01-07 12:44:43 UTC
I have the same problem in 6.0.7 and 6.3.4.2. In 6.0.7 the ogg-theora all of a sudden was transformed from its original 4:3 image stretched to 16:9. In the 6.3.4.2 version it is shown again as 4:3 but the flickering bar that looks as a non-functioning raster sync known from an ancient B&W TV shows again. What sort of video is used does not change anything and turning off or on the cache options either in Impress or general image options. I tried to turn off java, LO complained but I ignored that and ran my presentation again. It runs without java as well but the flickering bar remains. I see many people running their presentations, stopping it to show a video with another app and continue their slideshow... In all these cases they do not use LO, many times they even do not know it's existence so it seems that other presentation managers have these sorts of problems as well. In LO's Impress this used to work flawless. Unfortunately this is no longer the case. I just wonder what the real problem is, that this cannot be solved. Is it due to reproducing the error? Is it because this option is not widely used? I now have to switch to an external player as well to properly show an embedded video in a correct format and without this "out-of-sync-rolling-bar". I keep hoping someone can, some day. I currently use Linux Mint with the MATE desktop, 64bit version 19.3 and installed the latest stable LO from PPA on a Dell laptop, 8GB ram, Core-i5, 250GB SSD with a second HD monitor as "beamer"-replace via a HDMI cable.
Comment 15 Kara 2020-03-01 23:21:13 UTC
Same issue. LO 6.3.4.2, Ubuntu 19.10. Worked in previous editions, although issue persists for about a year now. Videos in presentations currently unusable. Flickering stops when I move the clip vertically to outside of the frame (Y-Position -0.10). Unfortunately, this then cuts off parts of the video content as well.
Comment 16 paroj 2020-04-30 19:25:49 UTC
on Ubuntu one can workaround this issue by uninstalling libreoffice-gtk3, which makes LO fall back to some ugly default VCL, but allows you to give the presentation without issues.

So the issue must be in the gtk3 VCL.

Build-ID: 1:6.4.3-0ubuntu0.18.04.1
Comment 17 Luca Della Santina 2020-04-30 19:43:56 UTC
Confirmed, the bug is still present in LO 6.4.2.2 and the workaround works also for me (Ubuntu 20.04 fresh default installation): uninstalling libreoffice-gtk3 makes the flickering bug disappear at the expense of losing LO native look&feel.

paroj, thank you for finding this workaround, made finally possible to use LO for my presentations!

Admins: would it be possible to assign this bug to a developer for a resolution in one of the future versions? Thank you.
Comment 18 Buovjaga 2020-04-30 19:46:16 UTC
(In reply to Luca Della Santina from comment #17)
> Admins: would it be possible to assign this bug to a developer for a
> resolution in one of the future versions? Thank you.

Sadly it is not possible, because developers do not take orders from random people. Only from their employers.
Comment 19 Luca Della Santina 2020-04-30 20:02:15 UTC Comment hidden (obsolete)
Comment 20 Caolán McNamara 2020-05-01 07:39:05 UTC
does the target system have the gstreamer gtksink plugin installed ? (on fedora this is package named gstreamer1-plugins-good-gtk) and I presume its all reproduced under X as opposed to wayland. There is a notable lack of information about OSes in the bug reports and me-toos
Comment 21 Buovjaga 2020-05-01 11:12:05 UTC
It was two years since I last tested and now I can no longer reproduce the flickering with GTK3 and X11 session. I do think I have always had gst-plugins-good installed. The package has a couple of .so files ending with sink at least.

Arch Linux 64-bit
Version: 7.0.0.0.alpha0+
Build ID: 23ddc3811d4d1890e4024f4e0f6bb5129a694fdc
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Built on 30 April 2020

Arch Linux 64-bit
Version: 6.4.3.2
Build ID: 6.4.3-1
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); UI-Language: en-US
Calc: threaded
Comment 22 paroj 2020-05-01 11:20:02 UTC
> There is a notable lack of information about OSes in the bug reports and me-toos

well, just ask for what you need..

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"

$ glxinfo | grep client.*vendor
client glx vendor string: NVIDIA Corporation

> does the target system have the gstreamer gtksink plugin installed ?

$ gst-inspect-1.0 | grep gtk
gtk:  gtksink: Gtk Video Sink
gtk:  gtkglsink: Gtk GL Video Sink
Comment 23 Jean-Baptiste Faure 2020-05-03 09:12:22 UTC
(In reply to Caolán McNamara from comment #20)
> does the target system have the gstreamer gtksink plugin installed ? (on
> fedora this is package named gstreamer1-plugins-good-gtk) and I presume its
> all reproduced under X as opposed to wayland. There is a notable lack of
> information about OSes in the bug reports and me-toos

Indeed, I reproduce the problem with LO 6.4 and master under X but not under Wayland (Ubuntu 18.04 x86-64). I built both versions with option --enable-gstreamer-1-0. The experimental option --enable-vlc make crashing LO as soon as it load a video.

Version : 6.4.5.0.0+
Build ID : b065d68266a8b897bc2dab26135577d1d0e9a7ff
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Ubuntu_18.04_x86-64
Locale : fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Calc: threaded

Version: 7.0.0.0.alpha0+
Build ID: cbe86ee37018dc4bf04783ecf70fef2863e61ad7
Threads CPU : 4; OS : Linux 4.15; UI Render : par défaut; VCL: gtk3; 
Locale: fr-FR (fr_FR.UTF-8); Langue IHM : fr-FR
Ubuntu_18.04_x86-64
Calc: threaded

Best regards. JBF
Comment 24 Buovjaga 2020-05-03 09:52:23 UTC
(In reply to paroj from comment #22)
> $ gst-inspect-1.0 | grep gtk
> gtk:  gtksink: Gtk Video Sink
> gtk:  gtkglsink: Gtk GL Video Sink

With this, I see I don't have these sinks. Yet, like I mentioned, I can no longer reproduce the problem.
Comment 25 paroj 2020-05-05 19:49:35 UTC
the issue seems to be related to races in the presentation queue. When simultaneously recording the full-screen window with OBS-Studio (xcomposite), there is no flickering.

Likely, XFlush is done at the wrong place (or not at all).
Comment 26 mmu 2020-07-12 11:52:30 UTC
Test it with LO 6.3.5.2 / LO 6.4.5 / LO 7.0.0.1 at ubuntu 19.10 with a simple impress document embedded a mp4 movie. Flickering appears in all versions at the full presentation screen.

$ gst-inspect-1.0 | grep gtk
> gtk:  gtksink: Gtk Video Sink
> gtk:  gtkglsink: Gtk GL Video Sink

But, if I use the right mouse key in the presentation mode the control window (with Next, Got to Slide, ... menus) appears on the presentation screen and the flickering stops immediately. As long as the control window appears, the movie runs how it should be. Unfortunately the control window is to large for using this as a interim solution.

May be, somebody can find a workaround to produce a smaller window with the mouse key, like this control window?
Comment 27 theClementine 2021-01-25 10:58:46 UTC
I can confirm that the flickering occurs on Ubuntu 18.04 LTS LibreOffice 6.0.7.3 00m0(Build:3). Necessary plugins are already installed.

gst-inspect-1.0 | grep gtk
gtk:  gtksink: Gtk Video Sink
gtk:  gtkglsink: Gtk GL Video Sink
Comment 28 QA Administrators 2023-01-26 03:23:28 UTC Comment hidden (obsolete)
Comment 29 Anastasius 2023-12-05 17:50:25 UTC
The flickering white bars in presentation mode do not occur any more in LibreOffice 7.5.8.2.
(Ubuntu 20.04.6 LTS, Intel i7-10710U built-in graphics, X11, Gnome 3.36.8).
Thank you for fixing!
Comment 30 Buovjaga 2023-12-05 17:53:16 UTC
Thanks for testing. Let's use worksforme status.