Does GStreamer-Java works with Wayland?

86 views
Skip to first unread message

Davide Perini

unread,
Jul 17, 2023, 4:43:47 AM7/17/23
to gstream...@googlegroups.com
Hi all,
I am trying to capture the screen with GStreamer Java on Wayland because
Xorg is going to be deprecated everywhere...

It seems that Wayland uses a complete different way to capture the
screen and it seems that GStreamer needs pipewire to record the screen
on Wayland .

I'm not an expert and I'm struggling in understanding what is the right
way to do it with GStreamer Java.

I have found this python example:
https://gitlab.gnome.org/-/snippets/19

but I'm not able to transform it with something "compatible" with
GStreamer Java.

Do you think that GStreamer Java is currently able to record screen on
wayland?

Thanks
Davide

Neil C Smith

unread,
Jul 17, 2023, 4:53:11 AM7/17/23
to gstream...@googlegroups.com
Hi,

On Mon, 17 Jul 2023 at 09:43, Davide Perini
<perini...@dpsoftware.org> wrote:
> I have found this python example:
> https://gitlab.gnome.org/-/snippets/19
>
> but I'm not able to transform it with something "compatible" with
> GStreamer Java.
>
> Do you think that GStreamer Java is currently able to record screen on
> wayland?

I saw your posts about this on the main GStreamer list.

If GStreamer can do this, GStreamer Java can do this. But, the
majority of that code seems to be setting up DBus messages to control
and acquire the pipewire source to pass into the GStreamer pipeline
description. That's not part of GStreamer or GStreamer Java
themselves. You might want to look at a Java DBus binding.

Best wishes,

Neil

--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : 3rd Floor Suite, 207 Regent Street,
London, W1B 3HH, England

Davide Perini

unread,
Jul 18, 2023, 8:03:32 AM7/18/23
to gstream...@googlegroups.com
Ok,
thank you Neil, I really appreciate the answer.

I'll try to figure out how to make it work.
If I will ever be able to do it, I'll create a GIST for poeple who may
be interested in it. :)

Have a good summer Neil and I hope good holidays too!

Kind regards
Davide

Davide Perini

unread,
Nov 5, 2023, 3:08:54 PM11/5/23
to gstreamer-java
at the end, Wayland support has been added, GStreamer Java is a masterpiece :)
sharing the code, is someone is interested in it...
Reply all
Reply to author
Forward
0 new messages