Skip to content

Instantly share code, notes, and snippets.

@shimomura1004
Created May 12, 2021 13:05
Show Gist options
  • Save shimomura1004/321158865fcf3af849d6dbf2d80f1310 to your computer and use it in GitHub Desktop.
Save shimomura1004/321158865fcf3af849d6dbf2d80f1310 to your computer and use it in GitHub Desktop.
audio streaming with rtp
GST_DEBUG=2 gst-launch-1.0 -vvv filesrc location=test.mp3 ! decodebin ! audioconvert ! rtpL24pay ! udpsink host=192.168.0.194 port=5000
# caps の内容は、emitter を実行したときにログにでてくる
GST_DEBUG=2 gst-launch-1.0 -v udpsrc port=5000 caps="application/x-rtp,media=(string)audio,clock-rate=(int)44100,encoding-name=(string)L24,encoding-params=(string)2,channels=(int)2,payload=(int)96,ssrc=(uint)2854973375,timestamp-offset=(uint)3308935138,seqnum-offset=(uint)13214" ! rtpL24depay ! audioconvert ! autoaudiosink sync=false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment