Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anselmobattisti/678f408fd8c86e68872a2f47ba944b92 to your computer and use it in GitHub Desktop.
Save anselmobattisti/678f408fd8c86e68872a2f47ba944b92 to your computer and use it in GitHub Desktop.
Gstreamer Stream a mp3 audio via UDP to multiple hosts via queue
gst-launch-1.0 multifilesrc location=sample.mp3 loop=true \
! tee name=t \
! queue \
! mpegaudioparse \
! mpg123audiodec \
! audioconvert \
! audioresample \
! audio/x-raw, rate=16000, channels=1, format=S16LE \
! audiomixer blocksize=320 \
! udpsink host=localhost port=10000 \
t. \
! queue \
! mpegaudioparse \
! mpg123audiodec \
! audioconvert \
! audioresample \
! audio/x-raw, rate=16000, channels=1, format=S16LE \
! audiomixer blocksize=320 \
! udpsink host=localhost port=10005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment