obs-studio/plugins
Georges Basile Stavracas Neto c2f8b2058b linux-capture: Add PipeWire-based capture
Add a new Linux capture based on PipeWire [1] and the Desktop portal [2].

This new capture starts by asking the Desktop portal for a screencapture session.
There are quite a few D-Bus calls involved in this, but the key points are:

 1. A connection to org.freedesktop.portal.ScreenCast is estabilished, and the
    available cursor modes are updated.

 2. CreateSession() is called. This is the first step of the negotiation.

 3. SelectSources() is called. This is when a system dialog pops up asking the
    user to either select a monitor (desktop capture) or a window (window capture).

 4. Start() is called. This signals the compositor that it can setup a PipeWire
    stream, and start sending buffers.

The reply to this fourth call gives OBS Studio the PipeWire fd, and the id of the
PipeWire node where the buffers are being sent to. This allows creating a consumer
PipeWire stream, and receive the buffers.

Metadata cursor is always preferred, but on the lack of it, we ask the stream for
an embedded cursor (i.e. the cursor is drawn at the buffer, and OBS Studio has no
control over it.)

Window capturing is implemented as a crop operation on the buffer. Compositors
can send big buffers, and a crop rectangle, and this is used to paint a subregion
of the buffer in the scene.

The new capture is only loaded when running on EGL, since it depends on EGL to
call gs_texture_create_from_dmabuf().

[1] https://pipewire.org/
[2] https://github.com/flatpak/xdg-desktop-portal/
2021-03-29 17:00:31 -03:00
..
coreaudio-encoder coreaudio-encoder: Fix cmake for mingw 2020-12-29 13:17:29 -08:00
decklink decklink: Remove unnecessary obs-frontend-api dependency 2021-03-04 19:22:12 +01:00
enc-amf@89f7de349e enc-amf: Fix inability to set bitrate in latest AMD driver 2020-11-26 09:41:00 -08:00
image-source Merge pull request #2233 from VodBox/missing-files-dialog 2021-01-31 08:02:16 -08:00
linux-alsa Update translations from Crowdin 2020-12-14 00:29:44 +01:00
linux-capture linux-capture: Add PipeWire-based capture 2021-03-29 17:00:31 -03:00
linux-jack linux-jack: fix deadlock when closing the client 2021-01-03 11:08:58 -08:00
linux-pulseaudio Update translations from Crowdin 2020-12-14 00:29:44 +01:00
linux-v4l2 linux-v4l2: Fix ignored return value 2021-01-30 00:25:25 -08:00
mac-avcapture mac-avcapture: Add additional capture presets 2021-02-02 06:51:21 -08:00
mac-capture mac-capture: Adjust mHostTime to milliseconds 2021-02-28 19:00:43 -08:00
mac-syphon Update translations from Crowdin 2020-12-14 00:29:44 +01:00
mac-virtualcam mac-virtualcam: DAL PlugIn check for custom png file 2021-03-01 07:40:13 -08:00
mac-vth264 mac-vth264: Clean up encoder list 2021-02-28 19:00:43 -08:00
obs-browser@77f1f7789f obs-browser: Update version to 2.14.1 2021-03-23 21:51:30 +11:00
obs-ffmpeg obs-ffmpeg: Missing NVENC bounds check 2021-03-20 12:35:49 -07:00
obs-filters obs-filters: Simplify NVAFX SDK path lookup 2021-03-16 20:34:15 +01:00
obs-libfdk Update translations from Crowdin 2020-12-14 00:29:44 +01:00
obs-outputs obs-outputs: Fix RTMP restart not always working 2021-01-31 18:44:11 -08:00
obs-qsv11 obs-qsv11: Fix bframe=0 not working 2021-01-11 11:52:07 -08:00
obs-text Merge pull request #2233 from VodBox/missing-files-dialog 2021-01-31 08:02:16 -08:00
obs-transitions obs-transitions: skip stinger size factors if track matte is disabled 2021-02-06 17:14:10 -08:00
obs-vst@f34327d98c obs-vst: Update to latest version 2021-03-22 12:42:54 -07:00
obs-x264 Update translations from Crowdin 2020-12-14 00:29:44 +01:00
oss-audio Update translations from Crowdin 2020-12-14 00:29:44 +01:00
rtmp-services rtmp-services: Add Dacast 2021-03-21 22:44:02 -07:00
sndio Update translations from Crowdin 2020-12-14 00:29:44 +01:00
text-freetype2 Merge pull request #2233 from VodBox/missing-files-dialog 2021-01-31 08:02:16 -08:00
vlc-video libobs: Add missing file API to sources 2021-01-17 10:31:58 +13:00
win-capture win-capture: Better laptop test for auto-selection 2021-03-12 20:59:31 -08:00
win-dshow win-dshow: Check return value of ReadFile 2021-03-23 03:15:07 +01:00
win-ivcam Merge pull request #1944 from WizardCM/windows-rc-definition 2020-04-18 18:27:22 -05:00
win-mf Update translations from Crowdin 2020-12-14 00:29:44 +01:00
win-wasapi win-waspi: Make sure to unregister notification obj 2021-02-06 10:41:19 -08:00
CMakeLists.txt cmake: Make mac vcam optional (enabled by default) 2021-01-11 16:16:25 -08:00