had missed this piprewire target-object fix for audio to work
This commit is contained in:
parent
ebb95f227d
commit
dfc85a4c6f
@ -145,10 +145,13 @@ class CSSStreamAgent:
|
|||||||
f'webrtcbin. '
|
f'webrtcbin. '
|
||||||
|
|
||||||
# Game audio: pipewiresrc → Opus
|
# Game audio: pipewiresrc → Opus
|
||||||
# pipewiresrc is the native PipeWire GStreamer source (Ubuntu 24+/26).
|
# target-object=game_output pins capture to the game audio sink.
|
||||||
# It connects to the default audio output monitor via PipeWire directly,
|
# Without this, pipewiresrc defaults to the system capture device
|
||||||
# avoiding the PulseAudio compatibility layer entirely.
|
# (virtual_mic / microphone) instead of the game audio monitor.
|
||||||
f'pipewiresrc ! '
|
# stream.capture.sink=true tells PipeWire to use game_output's
|
||||||
|
# monitor ports rather than treating it as a regular source node.
|
||||||
|
f'pipewiresrc target-object=game_output '
|
||||||
|
f'stream-properties="props,stream.capture.sink=(boolean)true" ! '
|
||||||
f'audio/x-raw,format=F32LE,rate=48000,channels=2 ! '
|
f'audio/x-raw,format=F32LE,rate=48000,channels=2 ! '
|
||||||
f'audioconvert ! '
|
f'audioconvert ! '
|
||||||
f'opusenc ! '
|
f'opusenc ! '
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user