Created
          September 22, 2019 12:54 
        
      - 
      
- 
        Save anselmobattisti/678f408fd8c86e68872a2f47ba944b92 to your computer and use it in GitHub Desktop. 
    Gstreamer Stream a mp3 audio via UDP to multiple hosts via queue
  
        
  
    
      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
    
  
  
    
  | 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