Last active
July 7, 2020 07:55
-
-
Save mongonta0716/5d0e1cbe11972ee88b83a9962b9978ac to your computer and use it in GitHub Desktop.
Gstreamer audio via udp sample
This file contains 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
#!/bin/bash | |
# XXX.XXX.XXX.XXX is own IP address | |
gst-launch-1.0 -v udpsrc uri=udp://XXX.XXX.XXX.XXX:5555 caps="application/x-rtp,channels=(int)2,format=(string)S16LE,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24" ! rtpL24depay ! audioconvert ! autoaudiosink sync=false |
This file contains 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
#!/bin/bash | |
# XXX.XXX.XXX.XXX = Reciever's IP address | |
gst-launch-1.0 -v filesrc location=~/Music/chikichiki.mp3 ! decodebin ! audioconvert ! rtpL24pay ! udpsink host=XXX.XXX.XXX.XXX port=5555 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment