Page 1 of 1

Kooha in EasyVoid/QV

Posted: Sun Apr 21, 2024 3:56 pm
by Caramel

During tests, a problem to install Kooha (https://github.com/SeaDve/Kooha) in QV has occurred. BarryK provided a fix (viewtopic.php?p=117500#p117500)

The same problem occurs in EasyVoid but the fix not works.(EDIT : the files 0setup in EasyVoid and in QV are very different, the fix is only for QV)

I tried to install Kooha as a flatpak (https://flathub.org/apps/io.github.seadve.Kooha) with Flapi
No problem with installation but it do not work :

# kooha
2024-04-21T15:18:28.868730Z INFO kooha::application: Kooha (io.github.seadve.Kooha)
2024-04-21T15:18:28.868853Z INFO kooha::application: Version: 2.3.0 ()
2024-04-21T15:18:28.868871Z INFO kooha::application: Datadir: /app/share/kooha
libEGL warning: failed to get driver name for fd -1

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd -1

(kooha:2): Gdk-WARNING **: 17:18:30.439: The program 'kooha' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
(Details: serial 470 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

In QV, Kooha (installed by PKGget with the fix) do not work
The github page of Kooha leads to a screencast compatibily page (https://github.com/emersion/xdg-desktop ... patibility) where webrtc is named.
I installed "libdatachannel" (a WebRTC library) by PKGget. Kooha still not works but it was no longer blocking other programs (Before when i tried to create a text file with the error message, geany closed suddenly if kooha was not closed)

Same error if Kooha run as user kooha or as root:

ERROR kooha::window: Échec du démarrage de l’enregistrement

Caused by:
0: Failed to create session
1: Failed to call `CreateSession` with parameters: Variant { ptr: 0x55d66d554c30, type: VariantTy { inner: "(a{sv})" }, value: "({'session_handle_token': <'kooha_0'>, 'handle_token': <'kooha_1'>},)" }
2: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: L’interface « org.freedesktop.portal.ScreenCast » n’existe pas pour l’objet à l’emplacement /org/freedesktop/portal/desktop

Via Google translate
ERROR kooha::window: Failed to start recording

Caused by:
0: Failed to create session
1: Failed to call `CreateSession` with parameters: Variant { ptr: 0x55d66d554c30, type: VariantTy { inner: "(a{sv})" }, value: "({'session_handle_token': <'kooha_0'>, 'handle_token ': <'kooha_1'>},)" }
2: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: The interface "org.freedesktop.portal.ScreenCast" does not exist for the object at location /org/freedesktop/portal/desktop


Re: Kooha in EasyVoid/QV

Posted: Mon Apr 22, 2024 10:06 am
by BarryK

Re: Kooha in EasyVoid/QV

Posted: Mon Apr 22, 2024 1:36 pm
by Caramel

In Easyvoid, try to install kooha with xbps:

# xbps-install -S
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
x86_64-repodata: 1835KB [avg rate: 2853KB/s]
[*] Updating repository `https://repo-fi.voidlinux.org/current/n ... 4-repodata' ...
Updating /root/.packages/Packages-void-current* pupdbs

/usr/local/petget/xbps-to-pupdb: line 32: /mnt/wkg/data/woofV/support/cvt.sh: No such file or directory

/usr/local/petget/xbps-to-pupdb: line 32: /mnt/wkg/data/woofV/support/cvt.sh: No such file or directory

# xbps-install Kooha
gst-plugins-bad1-1.22.9_1: broken, unresolvable shlib `libwebrtc_audio_processing.so.1'
libpulseaudio-16.1_1: broken, unresolvable shlib `libwebrtc_audio_processing.so.1'
Transaction aborted due to unresolved shlibs.

# xbps-query -Rs webrtc
[*] libdatachannel-0.20.2_1 C/C++ WebRTC network library
[-] libdatachannel-devel-0.20.2_1 C/C++ WebRTC network library - development files
[-] spreed-webrtc-0.29.7_10 WebRTC audio/video call and conferencing server and web client
[-] tg_owt-0.0.0.20231221_2 WebRTC library for Telegram-desktop
[-] webrtc-audio-processing-1.3_1 AudioProcessing library based on Google's implementation of WebRTC
[-] webrtc-audio-processing-devel-1.3_1 AudioProcessing library based on Google's implementation of WebRTC - development files

# xbps-install -Su webrtc-audio-processing
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-fi.voidlinux.org/current/n ... 4-repodata' ...
libpulseaudio-16.1_2 in transaction breaks installed pkg `pulseaudio-16.1_1'
libpulseaudio-16.1_2 in transaction breaks installed pkg `pulseaudio-utils-16.1_1'
Transaction aborted due to unresolved dependencies.

# xbps-install -Su libpulseaudio
[*] Updating repository `https://repo-fi.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-fi.voidlinux.org/current/n ... 4-repodata' ...
gst-plugins-bad1-1.22.9_1: broken, unresolvable shlib `libwebrtc_audio_processing.so.1'
Transaction aborted due to unresolved shlibs.

Note that webrtc-audio-processing is not found by PKGget


Re: Kooha in EasyVoid/QV

Posted: Tue Apr 23, 2024 7:19 am
by Caramel
BarryK wrote: Mon Apr 22, 2024 10:06 am

looks like it needs pipewire:

https://github.com/flatpak/xdg-desktop- ... issues/446

Yes! It's written in "Runtime Requirements" on Kooha page (https://github.com/SeaDve/Kooha)

In QV, I tried to install alsa-pipewire with PKGget. Failure with the same error than previously with kooha ("You declined to install this package...")
Maybe I have misunderstood the fix (viewtopic.php?p=117500#p117500) or it is incomplete

EDIT : Try of installation of wireplumber with xbpsget (after download of the wireplumber package)

# xbpsget wireplumber-0.5.2_1.x86_64.xbps
/usr/bin/xbpsget: ligne 148 : [: 34050732 : opérateur unaire attendu
grep: /root/.packages//root/.packages/Packages-void-current: Aucun fichier ou dossier de ce nom

Translated:
/usr/bin/xbpsget: line 148: [: 34050732: unary operator expected
grep: /root/.packages//root/.packages/Packages-void-current: No file or folder of that name


Re: Kooha in EasyVoid/QV

Posted: Tue Apr 23, 2024 10:09 am
by BarryK

Version 240423 released, see blog:

https://bkhome.org/news/202404/qv-versi ... eased.html

Kooha and alsa-pipewire install ok, but Kooha still won't record.