Anyone have any recommendations on serving an rtsp audio stream from a raspberry pi? #224
Replies: 3 comments 4 replies
-
Following uses ffmpeg to capture audio from usb sound card and it uses MediaMTX (previously known as rtsp-simple-server) to publish stream for network clients
Download and install MediaMTX
Edit configuration file mediamtx.yml Add the following content to the end of configuration file
Start MediaMTX with the configuration file
Stream is now available at rtsp://your-pi-ip-address:8554/stream. If you get errors about not being able to open device try these for ffmpeg
|
Beta Was this translation helpful? Give feedback.
-
Hi, I see that @tphakala already responded. I am using a similar setup in my Kubernetes cluster, with containers instead. Here are the relevant snippets of my pod specifications that could be translated into docker easily if you want to use it: RTSP client running on Raspberry Pi with mic - image: lscr.io/linuxserver/ffmpeg:6.1.1
name: ffmpeg
args:
- -f
- alsa
- -i
- plughw:0
- -f
- "rtsp"
- rtsp://birdnet-rtsps-server.birdnet.svc.cluster.local:8554/mystream
env:
- name: ALSA_CARD
value: '1' RTSP server which client talks to - image: bluenviron/mediamtx:latest
name: mediamtx
env:
- name: MTX_PROTOCOLS
value: tcp
ports:
- name: rtsp
containerPort: 8554
protocol: TCP Birdnet args:
- realtime
- --rtsp
- rtsp://birdnet-rtsps-server.birdnet.svc.cluster.local:8554/mystream
- --rtsptransport
- tcp Swap the birdnet-rtsps-server.birdnet.svc.cluster.local address for whatever ip you decide to run the rtsp server at. Bit of midsummer celebrations here in Sweden today. So I did unfortunately not have time to translate these into docker commands for you. But let me know if you need assistance with it 😊 |
Beta Was this translation helpful? Give feedback.
-
I posted this How To, Using VLC as a RTSP Server |
Beta Was this translation helpful? Give feedback.
-
Personally I use go2rtc https://github.com/AlexxIT/go2rtc on a pi zero w My config looks like this:
|
Beta Was this translation helpful? Give feedback.
-
I've been doing a bunch of research but I am not finding in solid documentation on this. There a specific library or package anyone suggests?
Beta Was this translation helpful? Give feedback.
All reactions