From: Logarithmus <Logarithmus@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] chromium: enable WebRTC screen sharing via PipeWire
Date: Thu, 03 Dec 2020 08:10:21 +0100 [thread overview]
Message-ID: <20201203071021.ieoCalci_chumiUpacI9vku4rd7mS-HGL6Pb56e0Ino@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26144@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2495 bytes --]
There is an updated pull request by Logarithmus against master on the void-packages repository
https://github.com/Logarithmus/void-packages libpipewire02
https://github.com/void-linux/void-packages/pull/26144
chromium: enable WebRTC screen sharing via PipeWire
[ci skip]
- [x] libpipewire0.2
- [x] patch chromium's template
- [ ] test for all supported archs:
- [x] x86_64 - works for Chromium 87: https://github.com/void-linux/void-packages/pull/26144#issuecomment-731759815 & 86: https://youtu.be/AgyxEC7SfGk
- [ ] i686 - works for Chromium 86: https://youtu.be/j0MY9C1CwV4
- [x] x86_64-musl - works for Chromium 87: https://youtu.be/ZJorRl_7Sh4
There are minor issues though:
* you have to kill `xdg-desktop-portal*` processes sometimes, probably caused by some sort of race condition;
* also you may need to start/restart screensharing for it to work.
✔️ https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing
✔️ https://zoom.us (in-browser version)
✔️ https://discord.com (in-browser version)
Currently I'm investigating these stability issues with `pipewire`. It seems that `pipewire` is trying to use `rtkit` to make audio/video processing run in real time. Unfortunately, it fails to do so:
```
2020-11-16T03:49:59.73350 daemon.err: Nov 16 03:49:59 rtkit-daemon[3165]: Failed to make ourselves RT: Function not implemented
2020-11-16T03:49:59.73602 daemon.warn: Nov 16 03:49:59 rtkit-daemon[3165]: Warning: failed to read scheduler policy: Function not implemented
2020-11-16T03:49:59.73620 daemon.debug: Nov 16 03:49:59 rtkit-daemon[3165]: Supervising 0 threads of 0 processes of 1 users.
2020-11-16T03:49:59.73645 daemon.debug: Nov 16 03:49:59 rtkit-daemon[3165]: Supervising 0 threads of 0 processes of 1 users.
2020-11-16T03:49:59.74118 daemon.err: Nov 16 03:49:59 rtkit-daemon[3165]: Failed to make ourselves RT: Function not implemented
```
After a bit of searching, I've found these bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1229700
https://bugs.gentoo.org/show_bug.cgi?id=569546
I've built `linux5.9` for `x86_64` with `CONFIG_RT_GROUP_SCHED` disabled.
For some strange reason, nothing changed, the error persists. Luckily, screen sharing works without `rtkit`.
I guess that those rare issues with screen sharing, which were described above, may be caused by `rtkit` not working.
A patch file from https://github.com/void-linux/void-packages/pull/26144.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libpipewire02-26144.patch --]
[-- Type: text/x-diff, Size: 5216 bytes --]
From 15271582aa9177e228d925f656b325bcff66bd6e Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Wed, 4 Nov 2020 02:42:23 +0300
Subject: [PATCH 1/3] New package: libpipewire0.2
---
srcpkgs/libpipewire0.2-devel | 1 +
srcpkgs/libpipewire0.2/template | 36 +++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
create mode 120000 srcpkgs/libpipewire0.2-devel
create mode 100644 srcpkgs/libpipewire0.2/template
diff --git a/srcpkgs/libpipewire0.2-devel b/srcpkgs/libpipewire0.2-devel
new file mode 120000
index 00000000000..456616f84ec
--- /dev/null
+++ b/srcpkgs/libpipewire0.2-devel
@@ -0,0 +1 @@
+libpipewire0.2
\ No newline at end of file
diff --git a/srcpkgs/libpipewire0.2/template b/srcpkgs/libpipewire0.2/template
new file mode 100644
index 00000000000..62c18860c00
--- /dev/null
+++ b/srcpkgs/libpipewire0.2/template
@@ -0,0 +1,36 @@
+# Template file for 'libpipewire0.2'
+pkgname=libpipewire0.2
+version=0.2.7
+revision=1
+wrksrc=pipewire-${version}
+build_style=meson
+configure_args="-Dgstreamer=disabled -Ddocs=false -Dsystemd=false"
+hostmakedepends="pkg-config"
+makedepends="dbus-devel alsa-lib-devel libudev-devel"
+short_desc="Server and user space API to deal with multimedia pipelines (v0.2)"
+maintainer="Artur Sinila <opensource@logarithmus.dev>"
+license="MIT"
+homepage="https://pipewire.org/"
+changelog="https://gitlab.freedesktop.org/pipewire/pipewire/-/raw/master/NEWS"
+distfiles="https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/${version}/pipewire-${version}.tar.gz"
+checksum=bfaa0f6ae6c0791e2e0b59234d399753bf24f1b33dbf587682363a8463dd8df1
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ makedepends+=" libatomic-devel"
+ LDFLAGS+=" -latomic"
+fi
+
+post_install() {
+ rm -r ${DESTDIR}/{etc,usr/bin}
+ vlicense LICENSE
+}
+
+libpipewire0.2-devel_package() {
+ depends="${pkgname}-${version}_${revision}"
+ short_desc+=" - pipewire and libspa development files"
+ pkg_install() {
+ vmove usr/include
+ vmove usr/lib/pkgconfig
+ vmove usr/lib/libpipewire-0.2.so
+ }
+}
From 2c4916609824e75c8feb5fb92c4723e4eb2bb28e Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Sat, 21 Nov 2020 03:58:45 +0300
Subject: [PATCH 2/3] common/shlibs: add libpipewire0.2
---
common/shlibs | 1 +
1 file changed, 1 insertion(+)
diff --git a/common/shlibs b/common/shlibs
index 3b89cba7b0b..507274376ab 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3272,6 +3272,7 @@ libarcan_shmif_ext.so.0.11 arcan-0.5.4.3_1
libarcan_shmif_server.so.0.11 arcan-0.5.4.3_1
libarcan_tui.so.0.11 arcan-0.5.4.3_1
liblwipv6.so.2 lwipv6-1.5a_1
+libpipewire-0.2.so.1 libpipewire0.2-0.2.7_1
libpipewire-0.3.so.0 libpipewire-0.3.6_1
libvolk.so.2.2.1 volk-2.2.1_1
libgnuradio-runtime.so.3.8.0 gnuradio-3.8.0.0_1
From 4646f1e46d767b4a15194d63e5d0ca88984c5280 Mon Sep 17 00:00:00 2001
From: Artur Sinila <opensource@logarithmus.dev>
Date: Thu, 5 Nov 2020 07:24:27 +0300
Subject: [PATCH 3/3] chromium: enable WebRTC screen sharing via PipeWire [ci
skip]
---
srcpkgs/chromium/template | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template
index b31a09ed1f6..1a77a9f9da7 100644
--- a/srcpkgs/chromium/template
+++ b/srcpkgs/chromium/template
@@ -16,12 +16,13 @@ lib32disabled=yes
nodebug=yes
nopie=yes # contains tools that are not PIE, enables PIE itself
-build_options="clang js_optimize vaapi pulseaudio sndio"
+build_options="clang js_optimize vaapi pulseaudio sndio pipewire"
desc_option_clang="Use clang to build"
desc_option_js_optimize="Optimize the JS used for Chromium's UI"
desc_option_vaapi="Enable support for VA-API"
desc_option_pulseaudio="Enable support for PulseAudio"
desc_option_sndio="Enable support for sndio"
+desc_option_pipewire="Enable support for screen sharing for WebRTC via PipeWire"
hostmakedepends="$(vopt_if clang clang) python pkgconf perl gperf bison ninja nodejs hwids
libatomic-devel libevent-devel libglib-devel $(vopt_if js_optimize openjdk)"
@@ -34,7 +35,7 @@ makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel
libjpeg-turbo-devel libevent-devel json-c-devel harfbuzz-devel
minizip-devel jsoncpp-devel zlib-devel libcap-devel libXdamage-devel
re2-devel fontconfig-devel freetype-devel opus-devel
- ffmpeg-devel libva-devel python-setuptools xcb-proto
+ ffmpeg-devel libva-devel python-setuptools xcb-proto libpipewire0.2-devel
$(vopt_if sndio sndio-devel)"
depends="libexif hwids desktop-file-utils hicolor-icon-theme xdg-utils"
@@ -42,7 +43,7 @@ case "$XBPS_TARGET_MACHINE" in
ppc64*-musl) makedepends+=" libucontext-devel" ;;
esac
-build_options_default="clang js_optimize vaapi pulseaudio"
+build_options_default="clang js_optimize vaapi pulseaudio pipewire"
post_patch() {
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
@@ -196,6 +197,10 @@ do_configure() {
"use_pulseaudio=$(vopt_if pulseaudio true false)"
)
+ conf+=(
+ "rtc_use_pipewire=$(vopt_if pipewire true false)"
+ )
+
# Use explicit library dependencies instead of dlopen.
# GN only has "link_pulseaudio", the other options used before are not available atm
# linux_link_cups=true
next prev parent reply other threads:[~2020-12-03 7:10 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 3:49 [PR PATCH] chromium: enable Logarithmus
2020-11-05 4:25 ` [PR PATCH] [Updated] chromium: enable WebRTC screen sharing via PipeWire Logarithmus
2020-11-05 4:25 ` Logarithmus
2020-11-05 4:38 ` Logarithmus
2020-11-11 1:43 ` Logarithmus
2020-11-11 2:13 ` Logarithmus
2020-11-11 3:02 ` Logarithmus
2020-11-13 20:33 ` Logarithmus
2020-11-15 7:50 ` Logarithmus
2020-11-15 22:06 ` Logarithmus
2020-11-16 1:08 ` Logarithmus
2020-11-16 4:00 ` Logarithmus
2020-11-16 4:44 ` Logarithmus
2020-11-16 14:12 ` Logarithmus
2020-11-16 14:15 ` Logarithmus
2020-11-17 14:53 ` Logarithmus
2020-11-18 4:16 ` Logarithmus
2020-11-18 4:20 ` Logarithmus
2020-11-19 5:41 ` [PR PATCH] [Updated] " Logarithmus
2020-11-19 20:40 ` [PR PATCH] [Updated] [ci skip] chromium: update to 87.0.4280.66 & " Logarithmus
2020-11-19 21:54 ` Logarithmus
2020-11-20 1:02 ` [PR PATCH] [Updated] chromium: " Logarithmus
2020-11-20 21:26 ` Logarithmus
2020-11-21 0:59 ` [PR PATCH] [Updated] " Logarithmus
2020-11-21 1:00 ` Logarithmus
2020-11-21 1:03 ` ericonr
2020-11-21 1:15 ` [PR PATCH] [Updated] " Logarithmus
2020-11-21 1:35 ` Logarithmus
2020-11-21 1:46 ` Logarithmus
2020-11-21 1:53 ` Logarithmus
2020-11-21 1:54 ` Logarithmus
2020-11-21 1:54 ` Logarithmus
2020-11-21 1:57 ` Logarithmus
2020-11-21 1:57 ` Logarithmus
2020-11-21 1:57 ` Logarithmus
2020-11-21 1:59 ` Logarithmus
2020-11-21 2:00 ` ericonr
2020-11-21 2:08 ` Logarithmus
2020-11-21 2:08 ` Logarithmus
2020-11-21 2:08 ` Logarithmus
2020-11-21 2:10 ` Logarithmus
2020-11-21 2:28 ` [PR PATCH] [Updated] " Logarithmus
2020-11-21 2:29 ` Logarithmus
2020-11-21 11:17 ` ifreund
2020-11-21 11:44 ` Logarithmus
2020-11-21 11:44 ` Logarithmus
2020-11-21 12:33 ` ifreund
2020-11-21 12:34 ` ifreund
2020-11-21 13:21 ` Logarithmus
2020-11-21 13:22 ` Logarithmus
2020-11-21 13:23 ` Logarithmus
2020-11-21 19:04 ` ifreund
2020-11-22 14:52 ` ifreund
2020-12-03 7:10 ` Logarithmus [this message]
2020-12-13 21:42 ` Logarithmus
2020-12-13 21:42 ` [PR PATCH] [Closed]: " Logarithmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201203071021.ieoCalci_chumiUpacI9vku4rd7mS-HGL6Pb56e0Ino@z \
--to=logarithmus@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).