OBS screen capture freezes after screen lock/unlock (Wayland / PipeWire)

dudangman

New Member
Obs select screen Capture(PipeWire), the OBS preview window displays the image correctly, and the preview updates dynamically with changes on the desktop.
But after screen lock/unlock, obs output PW disconnect:
info: [pipewire] Stream 0xaaaadd461990 state: "paused" (error: none)
info: [pipewire] Stream 0xaaaadd461990 state: "error" (error: no more input formats)
error: [pipewire] Error id:2 seq:21 res:-32 (断开的管道): no more input formats
after loginning into the destop, the OBS preview stops to update.

Is this by design with OBS ?
 
Last edited:
Same issue here. Pipewire screen capture always freezes after screen lock and unlock. Either have to reselect from the pipewire source selector or restart OBS. Quite annoying. I'm running GNOME Wayland Arch Linux. Has been the case for at least a year.

Log snippet after a quick obs launch -> lock -> unlock -> reselect which screen to share:

Code:
16:35:25.385: ==== Startup complete ===============================================
16:35:25.419: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
16:35:25.419: All scene data cleared
16:35:25.419: ------------------------------------------------
16:35:25.432: Device for 'Audio Output Capture' source Desktop Audio is also used for audio monitoring.
16:35:25.432: Deduplication logic is being applied to all monitored sources.
16:35:25.433: pulse-input: Server name: 'PulseAudio (on PipeWire 1.6.8) 15.0.0'
16:35:25.433: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
16:35:25.433: pulse-input: Started recording from 'alsa_output.usb-FIIO_JadeAudio_JA11_2020-02-20-0000-0000-0000-00.iec958-stereo.monitor' (default)
16:35:25.433: [Loaded global audio device]: 'Desktop Audio'
16:35:25.434: pulse-input: Server name: 'PulseAudio (on PipeWire 1.6.8) 15.0.0'
16:35:25.434: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
16:35:25.434: pulse-input: Started recording from 'alsa_input.usb-UltraSemi_USB3_Video_20210623-02.analog-stereo' (default)
16:35:25.434: [Loaded global audio device]: 'Mic/Aux'
16:35:25.434: PipeWire initialized
16:35:25.436: Switched to scene 'Scene'
16:35:25.436: ------------------------------------------------
16:35:25.436: Loaded scenes:
16:35:25.436: - scene 'Scene':
16:35:25.436:     - source: 'Screen Capture (PipeWire)' (pipewire-screen-capture-source)
16:35:25.436: ------------------------------------------------
16:35:25.491: Device for 'Audio Output Capture' source Desktop Audio is also used for audio monitoring.
16:35:25.491: Deduplication logic is being applied to all monitored sources.
16:35:25.636: [pipewire] Screencast session created
16:35:25.671: [pipewire] Asking for monitor and window
16:35:25.698: [pipewire] source selected, setting up screencast
16:35:25.705: [pipewire] Server version: 1.6.8
16:35:25.705: [pipewire] Library version: 1.6.8
16:35:25.706: [pipewire] Header version: 1.6.8
16:35:25.706: [pipewire] Created stream 0x5595ca56dab0
16:35:25.706: [pipewire] Stream 0x5595ca56dab0 state: "connecting" (error: none)
16:35:25.706: [pipewire] Playing stream 0x5595ca56dab0
16:35:25.707: [pipewire] Stream 0x5595ca56dab0 state: "paused" (error: none)
16:35:25.733: [pipewire] Negotiated format:
16:35:25.733: [pipewire]     Format: 12 (Spa:Enum:VideoFormat:BGRA)
16:35:25.733: [pipewire]     Modifier: 0x0
16:35:25.733: [pipewire]     Size: 1920x1080
16:35:25.733: [pipewire]     Framerate: 0/1
16:35:25.735: [pipewire] Negotiated format:
16:35:25.735: [pipewire]     Format: 12 (Spa:Enum:VideoFormat:BGRA)
16:35:25.735: [pipewire]     Modifier: 0x200000018801b03
16:35:25.735: [pipewire]     Size: 1920x1080
16:35:25.735: [pipewire]     Framerate: 0/1
16:35:25.742: [pipewire] Stream 0x5595ca56dab0 state: "streaming" (error: none)
16:35:26.015: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)
16:35:26.015:
16:35:26.165: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)
16:35:26.165:
16:35:39.294: [pipewire] Stream 0x5595ca56dab0 state: "paused" (error: none)
16:35:39.982: [pipewire] Stream 0x5595ca56dab0 state: "error" (error: no more input formats)
16:35:39.982: [pipewire] Error id:2 seq:47 res:-32 (Broken pipe): no more input formats
16:35:47.734: [pipewire] Stream 0x5595ca56dab0 state: "unconnected" (error: none)
16:35:47.738: PipeWire initialized
16:35:47.742: [pipewire] Screencast session created
16:35:47.744: [pipewire] Asking for monitor and window
16:35:51.433: [pipewire] source selected, setting up screencast
16:35:51.446: [pipewire] Server version: 1.6.8
16:35:51.446: [pipewire] Library version: 1.6.8
16:35:51.446: [pipewire] Header version: 1.6.8
16:35:51.446: [pipewire] Created stream 0x5595ca664940
16:35:51.446: [pipewire] Stream 0x5595ca664940 state: "connecting" (error: none)
16:35:51.447: [pipewire] Playing stream 0x5595ca664940
16:35:51.448: [pipewire] Stream 0x5595ca664940 state: "paused" (error: none)
16:35:51.458: [pipewire] Negotiated format:
16:35:51.458: [pipewire]     Format: 12 (Spa:Enum:VideoFormat:BGRA)
16:35:51.458: [pipewire]     Modifier: 0x0
16:35:51.458: [pipewire]     Size: 1920x1080
16:35:51.458: [pipewire]     Framerate: 0/1
16:35:51.459: [pipewire] Negotiated format:
16:35:51.459: [pipewire]     Format: 12 (Spa:Enum:VideoFormat:BGRA)
16:35:51.459: [pipewire]     Modifier: 0x200000018801b03
16:35:51.459: [pipewire]     Size: 1920x1080
16:35:51.459: [pipewire]     Framerate: 0/1
16:35:51.469: [pipewire] Stream 0x5595ca664940 state: "streaming" (error: none)
 
Back
Top