website/content/blog/pulseaudiortp.md

22 lines
669 B
Markdown
Raw Normal View History

2020-11-23 23:47:21 -05:00
---
2023-03-10 12:41:04 -05:00
date: 2020-11-24 04:41:41
2020-11-23 23:47:21 -05:00
draft: false
2023-01-05 14:04:45 -05:00
medium_enabled: true
2023-03-10 12:41:04 -05:00
medium_post_id: 334b857013b9
tags:
- Audio-Video
title: Streaming PulseAudio over RTP
2020-11-23 23:47:21 -05:00
---
With PulseAudio, we can send a RTP stream over multicast UDP. Here is the bash commands to setup a sink where anything sent to it gets broadcasted to the multicast address 224.0.0.56 at port 46416.
```bash
pacmd load-module module-null-sink sink_name=RTP
pacmd update-sink-proplist RTP device.description=RTP
pacmd load-module module-rtp-send \
source=RTP.monitor \
destination_ip=224.0.0.56 \
port=46416
```
Then in `pavucontrol`, you can push the audio of any application to the RTP sink we just created.