Bug 158365 - Unremovable thin black line around embedded videos (x11, Mesa, gstreamer)
Summary: Unremovable thin black line around embedded videos (x11, Mesa, gstreamer)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsDevAdvice
Depends on:
Blocks:
 
Reported: 2023-11-25 01:50 UTC by Ian Graham
Modified: 2024-01-04 17:37 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of video w/ x11 and Mesa i915 (115.70 KB, image/png)
2023-12-24 01:02 UTC, Ian Graham
Details
screenshot of video w/ wayland and Mesa i915 (110.65 KB, image/png)
2023-12-24 01:02 UTC, Ian Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Graham 2023-11-25 01:50:16 UTC
Description:
Embedded videos have a thin black line around them that I am unable to remove.

Setting the line to "None" has no effect. I tried changing all of the boundary colors to white in Tools > LibreOffice > Application Colors, but this had no effect.

When using a black video with a slide that has a black background the line is no longer perceptible, so it appears to be a black line that is ~1 pixel wide.

While a cosmetic issue, it affects the presentation quality of all presentations that include high quality videos with light backgrounds that are meant to blend into the background.

Steps to Reproduce:
1.Produce an MP4 video with a white background, say with Manim (example provided in "Other Information")
2.Insert into a presentation with white background
3.Go to Tools > LibreOffice > Application Colors and change all boundary colors to white and apply
4.Start presentation

Actual Results:
Video plays with a thin white boundary line

Expected Results:
Video plays with no boundary line


Reproducible: Always


User Profile Reset: No

Additional Info:
``` python
# python class to produce an example Manim video w/ a white background
# throw this into a file 'scene.py'
# then run `manim -qh scene.py AnimatedSquareToCircle`
# file is saved to './media/videos/scene/1080p60/AnimatedSquareToCircle.mp4'
class AnimatedSquareToCircle(Scene):
    def construct(self):
        self.camera.background_color = WHITE
        circle = Circle()  # create a circle
        square = Square()  # create a square

        self.play(Create(square))  # show the square on screen
        self.play(square.animate.rotate(PI / 4))  # rotate the square
        self.play(
            ReplacementTransform(square, circle)
        )  # transform the square into a circle
        self.play(
            circle.animate.set_fill(PINK, opacity=0.5)
        )  # color the circle on screen
```

Help - About LibreOffice

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 12; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 1 Ian Graham 2023-11-28 20:10:21 UTC
The issue is present on my laptop which has Intel mesa graphics drivers, but not on my desktop with the Nvidia 545 driver. My laptop also reports more failures in the "Run Graphics Test" utility than my desktop. Both run identical OS and flatpak version of LibreOffice otherwise.
Comment 2 Ian Graham 2023-11-28 21:19:20 UTC
Okay additionally it seems to only occur with X11 on the Mesa driver.

I tried with Wayland on Mesa and the issue was not present. Graphical tests are unaffected so it's unlikely to be related to the rendering backend. The reason for the issue is probably in the video driver, here gstreamer, and it's behavior with different display protocols and video drivers.
Comment 3 Stéphane Guillou (stragu) 2023-12-14 10:56:25 UTC
Thanks for the report.
Even though the information you provided seems to point to "not our bug":
- Is the video set to fill the entire screen/slide?
- Do you have a screenshot to share?
Comment 4 Ian Graham 2023-12-24 01:02:02 UTC
Created attachment 191580 [details]
screenshot of video w/ x11 and Mesa i915
Comment 5 Ian Graham 2023-12-24 01:02:25 UTC
Created attachment 191581 [details]
screenshot of video w/ wayland and Mesa i915
Comment 6 Ian Graham 2023-12-24 01:06:21 UTC
The video is not set to fill the screen, and screenshots are above.
Comment 7 QA Administrators 2023-12-24 03:12:40 UTC Comment hidden (obsolete)