Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording doesn't start gnome 40 (x11) #298

Open
lefred opened this issue Oct 22, 2021 · 7 comments
Open

Recording doesn't start gnome 40 (x11) #298

lefred opened this issue Oct 22, 2021 · 7 comments

Comments

@lefred
Copy link

lefred commented Oct 22, 2021

Thank you for porting the extension to Gnome 40 \o/

In the open points, I see "There is a problem with the gstreamer pipeline - fixed. Gnome Shell 40 needs a videoconvert element first".
Not sure if it's related, but I can install the extension, I can get the parameters, ... all fine. But I'm not able to start recording:

[ESC]-*-start recording
[ESC]-*-type of selection of the area to record: 2
[ESC]-£-window selection init[ESC]-£-capture selection init[ESC]-°-init notify manager[ESC]-°-show alert tweener : Select a window for recording or press [ESC] to abort[ESC]-*-refresh indicator -A false -F undefined
[ESC]-£-selectWin x:3992 y:102... <PLENTY OF selectWin...> [ESC]-£-window highlight on, pos/meas: x:2057 y:103 w:2488 h:1226[ESC]-£-capture selection stop[ESC]-£-global screen area H: 1440 W: 6400[ESC]-£-windows pre wx: 2057 wy: 103 height: 1226  width: 2488[ESC]-£-windows post wx: 2057 wy: 103 height: 1226 width: 2488[ESC]-£-selection x:2057 y:103 height:1226 width:2488[ESC]-*-instant recording called
[ESC]-&-start video recording
[ESC]-§-get file extension C-> 2[ESC]-§-COMPOSE GSP[ESC]-#-mixer _init
[ESC]-#-mixer exist -> [object instance wrapper GIName:Gvc.MixerControl jsobj@0x398244614c80 native@0x562f25528980] state -> 1
[ESC]-§-get option||devW: ||devA: 0||Qgsp: 1||Qwc: ||Res: -1||Cont: 2[ESC]-§-SCREEN[ESC]-§-resolution option: -1[ESC]-§-compose resolution: [ESC]-§-final GSP : x264enc psy-tune="animation" speed-preset="fast" subme=5 qp-min=18 qp-max=28 threads=%T ! queue max-size-buffers=0 max-size-time=0 max-size-bytes=0 ! mp4mux[ESC]-&-path/file template : Screencast_%d_%t.mp4
[ESC]-&-pipeline : gnome-shell-version=40 pipeline: videoconvert chroma-mode=GST_VIDEO_CHROMA_MODE_NONE dither=GST_VIDEO_DITHER_NONE matrix-mode=GST_VIDEO_MATRIX_MODE_OUTPUT_ONLY n-threads=%T ! queue !  x264enc psy-tune="animation" speed-preset="fast" subme=5 qp-min=18 qp-max=28 threads=%T ! queue max-size-buffers=0 max-size-time=0 max-size-bytes=0 ! mp4mux
[ESC]-&-ERROR(screencast execute) - Timeout was reached
[ESC]-&-stop video recording
[ESC]-*-record ERROR
[ESC]-*-refresh indicator -A false -F undefined
[ESC]-&-ERROR(screencast stop) - Timeout was reached

I tried different output format too.

I'm using Fedora 34 with gnome-shell-40.4-1.fc34.x86_64 (Using Xorg)

@adangel
Copy link
Collaborator

adangel commented Oct 22, 2021

I've experienced timeouts as well, but I could only reproduce it when switching from a wayland session to a x11 session. In a wayland session, screencast works immediately.

Can you record with the standard gnome screencast shortcut? ctrl+shift+alt+R
Does this create a webm file in $HOME/Videos?

I could get it eventually work with a small number of retries. At some point, it suddenly starts working... After trying a couple of times ctlr+shift+alt+R - once this works, then EasyScreenCast also started working.

@lefred
Copy link
Author

lefred commented Oct 22, 2021

In wayland it works as expected (the native gnome screencast and Easyscreencast), on Xorg, none of them are working.

@adangel adangel changed the title Recording doesn't start gnome 40. Recording doesn't start gnome 40 (x11) Oct 25, 2021
@adangel
Copy link
Collaborator

adangel commented Oct 25, 2021

another case (from #292):

@Avijneyam
it's X11
Kali Linux
Gnome-Shell 3.38.6

@lefred
Copy link
Author

lefred commented Oct 25, 2021

It's working now for me. Nothing special done, I used wayland for some days and now back to X11 and it works as expected.

@adangel
Copy link
Collaborator

adangel commented Oct 26, 2021

Maybe this URL will help to troubleshoot: https://github.com/emersion/xdg-desktop-portal-wlr/wiki/%22It-doesn't-work%22-Troubleshooting-Checklist
I've not had time yet to check this X11 problem...

@Avijneyam FYI

@adangel
Copy link
Collaborator

adangel commented Oct 30, 2021

@Avijneyam I've tried to reproduce it on Kali Linux 2021.3a and gnome-shell 3.38.4 under x11. But that works out of the box. The only way I could make it fail was, when I manually stopped the service "pipewire-media-session". Can you check, whether this service is running for you?

systemctl --user status pipewire-media-session

It should say "Active: active (running)".
If it is not running, try to start it with systemctl --user start pipewire-media-session

If I update Kali Linux now, I'll get gnome-shell 41, so - maybe you should update your Kali as well and the problem is gone?

@Avijneyam
Copy link

Avijneyam commented Jan 14, 2022

Thanks @adangel for mentioning me and sorry for late reply...
i've checked that cmd output and it's showing this

Failed to start pipewire-media-session.service: Unit pipewire-media-session.service not found.

also i've updated Kali

Gnome: 41.2
X11

still this ext. not working for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants