Last active
February 22, 2025 23:16
-
-
Save zopieux/754843dfde169151d2b64591ec264020 to your computer and use it in GitHub Desktop.
Pipewire to Snapserver (TCP stream) using gstreamer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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