Skip to content

u/toggleton

In this archive from May 2020 to Jun 2021

0
posts
25
comments
0
media
86
score

maybe try to start sway in debug mode.

sway -d 2> ~/sway.log 

This will record information about sway's activity when it's running. Briefly reproduce your problem and exit sway. Upload this file, along with your config, to gist.github.com, and include this in a GitHub issue (or when asking for help on IRC). When preparing a debug log, make it brief - start up sway, do the minimum work necessary to reproduce the error, then close sway. Explain the steps you took in plain English in your GitHub issue as well.

If the problem isn't immediately obvious, you will likely be required to debug it yourself - we are volunteers and only have so much free time.

2 points

i got it to run on a fresh arch install with only the "gnome" base packages installed over a minimal install with archfi

with "xdg-desktop-portal" installed from the repo (not the AUR) and then the obs-studio recompiled(pipewire was installed already)

​

The Pipewire option is there but only if it is run with QT_QPA_PLATFORM=wayland obs

And themes for flatpaks are there. OBS is a QT app so i guess this should work https://docs.flatpak.org/en/latest/desktop-integration.html#instructions-for-qt but never used flatpak with Themes yet

​

I know it is getting repetitive but I can't help but thank you again hahaha. You've been really helping me a lot.

No problem. I have fun doing debuging/troubleshooting new stuff on linux :)

BTW https://github.com/obsproject/obs-studio/releases/tag/27.0.0-rc1 RC is out so soon :)

2 points

- I tried to use the pacnew files, alsa-monitor.conf and

media-session.conf inside /etc/pipewire/media-session.d

, these were the only pacnew files I found

So you did replace/merge the pacnew files into the conf files?

and i think pipewire does not like to be started as root so you need to start as --user

systemctl --user start pipewire-media-session.service

systemctl --user status pipewire-media-session.service

to look if it is running. But AFAIK should it start automatic with the newer version of it pipewire.

​

OBS built from source and still there isn't PipeWire option there

will tomorrow(German time) test around in a vm with a clean arch install what dependencys are needed. i guess something is missing as i did only test on quite bloated install as i was lazy :)

2 points

https://github.com/obsproject/obs-studio/pull/4287 the Pull request got merged so you don't need to use my link anymore and can just use obs-studio-git from the AUR.

Maybe the next OBS release is close https://github.com/obsproject/obs-studio/milestone/3 at least there is hope that it is the case :)

​

Any update if you could fix your problems? Can you try https://mozilla.github.io/webrtc-landing/gum_test.html the screenshare option on that page with your browser. to look if it is a problem with pipewire in general or a OBS problem https://wiki.archlinux.org/index.php/PipeWire#WebRTC_screen_sharing

2 points

Ok we are at least a step closer now :)

​

Can you look into /etc/pipewire if there are pacnew files? And replace the old configs with the pacnew files? (keep the old config files as backup somewhere) As the last update did break pipewire for quite a lot arch users as the config did change and pipewire-media-sesion is its own package/deamon since the release 18days ago.

https://gitlab.freedesktop.org/pipewire/pipewire/-/wikis/Troubleshooting#pipewire-not-loading

https://wiki.archlinux.org/index.php/Pacman/Pacnew_and_Pacsave Did use pacdiff myself for this.

If you did that restart the PC and check with journalctl --this-boot --user-unit pipewire --follow

if there is "Started Multimedia Service"

​

In OBS you can right click on the PipewireDesktopCapture in the "sources" selector and >PropertiesIf you click in the new window [PipewireSelectMonitor], it should popup a new window that asks what screen you want to use (if not then it should print something to the terminal you did start OBS from. This would be good to have to find the source of your problem)

1 points

only
QT_QPA_PLATFORM=wayland obs

ok then i am out of ideas. Well i guess if you have no problem waiting for a bit you could wait till the pipewire stuff gets merged so you can use the usual obs-studio-git(as i would guess they would ad the dependencies to it). It"s hard to debug as i can't reproduce your problem on my test VM.

2 points

OK did test it in a EndeavourOS VM with GNOME-wayland. I hope it will work now for you.

Check if pipewire is installed(did add it to the PKGBUILD now) it looks like the pipewire support needs glib2(libgio-2.0) but that should be installed anyways.

Install all the dependency it does ask for(you should have them already as you did install obs-studio-git)

​

git clone https://gitlab.com/Toggleton/obs-pipewire-git

cd obs-pipewire-git

makepkg -sif

cd ../

​

After that do

git clone https://aur.archlinux.org/obs-xdg-portal-git.git

cd obs-xdg-portal-git

edit the PKGBILD from depends=('obs-studio-wayland' -> depends=('obs-studio'

and build it with

makepkg -sif

If it does ask what version of xdg-desktop portal you want take the xdg-desktop-portal-gtk for gnome

now start OBS with QT_QPA_PLATFORM=wayland obs

Add the source: PipewireDesktopCapture and then should the screenshare popup come where you can choose the display

​

That should be all. If it still does not work(try a reboot first). It could be that your pipewire could be broken as the update did AFAIK change the config and the settings could be saved as .pacnew in /etc/pipewire/ so could be that a cleanup of the configs could help. As others in this subreddit did have this problem.

2 points

do you have this xdg-desktop-portal-gtk and pipewire installed? (Onlcy the base package. pipewire-pulse should be not installed. That would replace pulseaudio)

and obs started with QT_QPA_PLATFORM=wayland obs

Can you describe what happens if you add the source PipewireDesktopCapture? If that is not there can you send the output that obs prints to the terminal.

I think discord can you ignore for now as that can only be fixed if Discord does update to a electron12 so it has Wayland support(or they find a way to use pipewire)

EDIT will look what dependency it needs so i can upload it to the AUR. If i get it on a fresh install to run will it most likely run on your system too.

2 points

I did write you in the other comment the old way with the xdg-portal. i have played a bit with the experimental pipewire screencapturing support https://github.com/obsproject/obs-studio/pull/4287 (did only remove the changes in /plugins/linux-capture/data/locale/en-US.ini as that did not build with it)

If you want to play around with it

git clone https://gitlab.com/Toggleton/obs-pipewire-git

cd obs-pipewire-git

makepkg -sif

​

GNOME-Wayland and KDE-wayland Work(in sway does it not work yet cause of a permission problem)

It feels smoother and seems like it has a lower latency than the old way https://youtu.be/-DtEeWmiEUQ . And Desktop audio does come from the same source. Will update my git repo if there are updates to the Pull request till it gets merged.

2 points

OK got it to work https://aur.archlinux.org/packages/obs-xdg-portal-git/ (install this but change the

depends=('obs-studio-wayland' -> obs-studio

before building it as that would install the package that should no longer be needed(obs release with the wayland patches) and conflicts with the obs-git)

installed xdg-desktop-portal-gtk and rebooted

​

set in OBS it to source: Desktop capture(x11/wayland) then it should show a popup that asks what screen you want to share like in the pictures here https://feaneron.com/2019/11/21/screencasting-with-obs-studio-on-wayland/

not 100% sure if you need to have an env set as i have many for my sway install and don't want to play arount with that right now :) Here proof https://youtu.be/B4vyoyxGOmA it does not run fluid for me right now but at least a working state.

Edit seems like with QT_QPA_PLATFORM=wayland obs
does it run a lot smoother for me

2 points

https://feaneron.com/2019/11/21/screencasting-with-obs-studio-on-wayland/ the needed stuff should be in the flatpak version of OBS or if you build the OBS from git as the wayland PRs are not in a release yet

https://github.com/obsproject/obs-studio/pull/2484

EDIT: https://wiki.archlinux.org/index.php/PipeWire#WebRTC_screen_sharing for Discord but i think the electron that the discord App uses is way to old so not sure if that works for this yet . So you could try if it works in the browser

Xwayland windows can capture xwayland windows(i guess that is what you see that some windows work) and as electron has since version 12 Wayland support with
--enable-feature=UseOzonePlatform --ozone-platform=wayland

is there at least hope that they will enable pipewire screensharing with it

(electron12 is not released on Arch yet and since more than a week in staging https://archlinux.org/packages/community-staging/x86_64/electron/

4 points

The issue is not CPU decoding power but battery life and heat.

It is in a way both. If your CPU is running at Max Speed does it take more Battery/produce more heat

To take the extreme example ". With the most recent version of dav1d you can get 887 FPS, albeit with a 3990X" This does mean if it will use all cores at max speed will it get 887 FPS but if you just decode a 1080p30fps video will that mean your CPU is not much in use. The same is with smartphones too.

​

The pixel 1 XL in that test should be mostly possible to decode the 1080p AV1 file but it will run at full speed that's why i said "that are stronger than the pixel 2"

The LG G3 is a ARMv7/32bit CPU not sure how good the support by dav1d is for that and the Mi A1 looks like it is more on the budget side of CPUs. But i think Av1 decoding with Dav1d should be in the same range as h265 software decode but not sure how good the 10bit decoder are of h264/265. Will look if i can make a test on the Odroid N2 h265 vs dav1d 8+10bit :)

6 points

We have seen so far announcements for TVs and Set-top box CPUs with AV1 Hardware decoder. I guess we need to wait for the Smartphone releases of this Year to know if they have support.

​

Don't think AV1 will be very niche with

netflix https://medium.com/@NetflixTechBlog/netflix-now-streaming-av1-on-android-d5264a515202

Google(Youtube has encodes so far per day alone in the "Popular right now" Playlist ~50/200 Videos <=1080p https://htmlpreview.github.io/?https://github.com/thulle/yt-av1/blob/master/yt-av1.html)

Vimeo(they encode nearly all staff pick videos in AV1 https://vimeo.com/blog/post/av1-new-standard-codecs/)

Facebook(https://engineering.fb.com/video-engineering/facebook-video-adds-av1-support/)

and Twitch (https://www.youtube.com/watch?v=K1Fzm7nINjM&start=909 not sure how this timeline is still true + they have a feature in AV1 they want to use https://www.youtube.com/watch?v=o5sJX6VA34o)

planing to use it.

5 points

The performance of dav1d on arm64 should be fine if your CPU is not that weak

It got tested tested on a Google pixel 1 xl, Pixel 2 , pixel3, xiaomi mi 9T pro and a Odroid N2

https://www.reddit.com/r/AV1/comments/gncplq/av1_multithreaded_decoder_comparison_2020may19/

1080p30fps should be possible on smartphones (that are stronger than the pixel 2) without that the smartphone is running at full power for both 8bit and 10bit. lower resolutions even better.(But i think you need to use VLC or any other player on android that got build with a up to date dav1d, the build in decoder libgav1 is weaker)

6 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.