Skip to content

Instantly share code, notes, and snippets.

@zopieux
Last active February 22, 2025 23:16
Show Gist options
  • Save zopieux/754843dfde169151d2b64591ec264020 to your computer and use it in GitHub Desktop.
Save zopieux/754843dfde169151d2b64591ec264020 to your computer and use it in GitHub Desktop.
Pipewire to Snapserver (TCP stream) using gstreamer
$ snapserver --stream.port=1704 --stream.bind_to_address=0.0.0.0 --tcp.bind_to_address=0.0.0.0 --tcp.port=1705 \
--stream.stream='tcp://127.0.0.1:4444?name=desktoptcp'
# Get ID:
$ pw-cli ls '*analog-stereo' | grep id | head
# id 68
$ gst-launch-1.0 -v pipewiresrc path=68 ! audioresample ! \
audio/x-raw,rate=48000,channels=2,format=S16LE ! wavenc ! \
tcpclientsink host=127.0.0.1 port=4444
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment