Strange playback in gtk4 window

This forum is about all development around libVLC.
tomacaster
New Cone
New Cone
Posts: 2
Joined: 07 May 2024 12:44

Strange playback in gtk4 window

Postby tomacaster » 07 May 2024 12:52

Hi, I am writing a simple video player using libvlcpp (libvlc 3.0.20) and gtkmm4. Unfortunately, I stopped at the very beginning. When I pass the window handle (in the gtk4 get_surface method) the playback is strange, as if no frame is cleared. Stranger still, when I record the screen using some default screen grabber with gnome (ubuntu 24.04) it looks normal. Can anyone tell me what I am doing wrong? Videos and source code are available on my github (branch edge):

https://github.com/tomacaster/GBaric/tr ... _resources

Rémi Denis-Courmont
Developer
Developer
Posts: 15321
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Strange playback in gtk4 window

Postby Rémi Denis-Courmont » 07 May 2024 14:24

Your window is transparent, which is rarely a good idea for video playback.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

tomacaster
New Cone
New Cone
Posts: 2
Joined: 07 May 2024 12:44

Re: Strange playback in gtk4 window

Postby tomacaster » 12 May 2024 22:10

thank you for the answear, but window is not transparent, it has generic solid color. Secondly, video should have black background, when I'm using Gnome's (or ubuntu) screen recording tool, video looks fine. Maybe you have any other suggestions what could causing that playback?

I'm pasting screenshots from screen recorder
Image
Image

and what I actually see

Image
Image

EDIT: I've pasted screens from github, you should click left mouse button and open it in new tab


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests