SeaDve / Kooha

Elegantly record your screen
GNU General Public License v3.0
2.58k stars 69 forks source link

Mouse pointer is not visible in X11 #56

Closed prateekmedia closed 8 months ago

prateekmedia commented 3 years ago

Video Recording:

https://user-images.githubusercontent.com/41370460/116356857-6f4e8e00-a819-11eb-8521-e0bfca433a78.mp4

Neofetch:

          /:-------------:\          prateeksu@fedora 
       :-------------------::        ---------------- 
     :-----------/shhOHbmp---:\      OS: Fedora 34 (Workstation Edition) x86_64 
   /-----------omMMMNNNMMD  ---:     Kernel: 5.11.13-300.fc34.x86_64 
  :-----------sMMMMNMNMP.    ---:    Uptime: 1 hour, 2 mins 
 :-----------:MMMdP-------    ---\   Packages: 2444 (rpm), 14 (flatpak) 
,------------:MMMd--------    ---:   Shell: fish 3.2.1 
:------------:MMMd-------    .---:   Resolution: 1600x900 
:----    oNMMMMMMMMMNho     .----:   DE: GNOME 40.0 
:--     .+shhhMMMmhhy++   .------/   WM: Mutter 
:-    -------:MMMd--------------:    WM Theme: Adwaita 
:-   --------/MMMd-------------;     Theme: Adwaita-dark [GTK2/3] 
:-    ------/hMMMy------------:      Icons: Tela-dark [GTK2/3] 
:-- :dMNdhhdNMMNo------------;       Terminal: gnome-terminal 
:---:sdNMMMMNds:------------:        CPU: Intel Core 2 Quad Q9300 (4) @ 1.077GHz 
:------:://:-------------::          GPU: NVIDIA GeForce GT 1030 
:---------------------://            Memory: 3165MiB / 7950MiB 

with Xorg session

SeaDve commented 3 years ago

Hmm, is it reproducible with wayland session?

prateekmedia commented 3 years ago

Hmm, is it reproducible with wayland session?

Actually Nvidia and Wayland doesn't pair up well but last month when I tried it on Wayland without Nvidia drivers then it worked AFAIK.

SeaDve commented 3 years ago

Okay, thanks. It might be an xorg issue then. One more thing, if I may. Does it show the cursor when you press ctrl+shift+alt+r to record on xorg?

prateekmedia commented 3 years ago

Okay, thanks. It might be an xorg issue then. One more thing, if I may. Does it show the cursor when you press ctrl+shift+alt+r to record on xorg?

Yes.

SeaDve commented 3 years ago

That's weird. I think it might be the app settings? Can you show ~/.var/app/io.github.seadve.Kooha/config/glib-2.0/settings/keyfile ? It is where the configuration file is saved in flatpak. It includes there if it should actually include pointer.

prateekmedia commented 3 years ago

Please wait will report it soon.

prateekmedia commented 3 years ago

Ok here you go,

[io/github/seadve/Kooha]
show-pointer=true
video-format='mkv'
prateekmedia commented 3 years ago

Also note that it records cursor with simple screen recorder and default Ctrl+Alt+Shift+R keybindings.

But it doesn't work with kooha and also I tried with RecApp, it didn't recorded cursor.

SeaDve commented 3 years ago

Thanks, i'll investigate on it

charbelnicolas commented 3 years ago

I'm on X11, same issue, the pointer is not being recorded.

SeaDve commented 3 years ago

I tried with RecApp, it didn't recorded cursor.

RecApp uses different backend in X11. That's interesting

SeaDve commented 3 years ago

Hi, i think this might be fixed on latest commits in portal branch

You can test it, if confirmed, I'll include this to 2.0.0 milestone, thanks

prateekmedia commented 3 years ago

Hi, i think this might be fixed on latest commits in portal branch

You can test it, if confirmed, I'll include this to 2.0.0 milestone, thanks

I cannot test it as I am in kde and v2 is also broke in kde.

SeaDve commented 3 years ago

it should also work on kde, if they have interface for org.freedesktop.portal.Screencast

Edit: It is a full rewrite of backend to support most DEs and WMs

SeaDve commented 3 years ago

Is it working?

prateekmedia commented 3 years ago

Is it working?

I cannot test it, no compile errors on kde but recording is not working.

I don't know the dependencies name for arch based distro.

SeaDve commented 3 years ago

which kde distro? I think it doesn't work with distros based on Ubuntu 20.04 and below, such as Neon

prateekmedia commented 3 years ago

which kde distro? I think it doesn't work with distros based on Ubuntu 20.04 and below, such as Neon

Manjaro kde, latest version

SeaDve commented 3 years ago

I'll try to test it on my device, I'll install kde

SeaDve commented 3 years ago

I am able to reproduce it in both 1.2.1 and main branch. The cursor is not really hidden, it is stuck on the top left most corner. I'm not sure what is causing it.

SeaDve commented 3 years ago

https://github.com/flatpak/xdg-desktop-portal/issues/596

I don't think the submitted issue could get that much attention from portal developers since one of portal main purpose is to improve wayland support with stuffs like recording, and not X11

I can't do anything much about it since kooha doesn't handle where the cursor should be, unless i dive deeper with pipewire

prateekmedia commented 3 years ago

Ok if not kooha then

SeaDve commented 3 years ago

It would be better to keep it open, to keep track of it. And help other user to be aware of the issue

working-name commented 3 years ago

Okay, thanks. It might be an xorg issue then. One more thing, if I may. Does it show the cursor when you press ctrl+shift+alt+r to record on xorg?

Yes.

On my system the cursor is stuck at the top left with Xorg's own recorder as well. Kooha's settings didn't have cursor enabled although UI showed it, but toggling that button rewrote the config. Issue still remains.

So this is an Xorg issue altogether, am I right?

Terrible workaround

https://github.com/phw/peek/issues/430#issuecomment-510875302

SeaDve commented 3 years ago

So this is an Xorg issue altogether, am I right?

correct, as far as i know

using ffmpeg is not a good idea, as it will need total rewrite of backend

working-name commented 3 years ago

using ffmpeg is not a good idea, as it will need total rewrite of backend

Sorry, it was this specific workaround:

A temporary workaround, until fixed gnome-shell is released, 
is to go to Gnome Settings -> Universal Access -> Zoom -> Magnifier 
and enable it with magnification 1.00. 

You'll get much worse cursor performance (and higher CPU utilization) though.
SeaDve commented 3 years ago

I see, thanks! It may be helpful for others

Peque commented 3 years ago

I encountered this issue as well. Only the same happens if I use CTRL+ALT+SHIFT+R (cursor stuck in the top-left corner). :shrug:

The cursor is recorded if I choose to record a single window with Kooha, but then the video recording itself breaks:

https://user-images.githubusercontent.com/526577/136994390-a74e68e8-bd25-4158-aa16-e74387b3a6db.mp4

Peque commented 3 years ago

I opened an issue in the GNOME Shell repo: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4689

SeaDve commented 8 months ago

Closing this as out of scope since there's nothing much we can do from Kooha's side