rzeldent / esp32cam-rtsp

Simple RTSP (streaming image) server for the ESP32CAM. Easy configuration and monitoring through the web interface.
614 stars 107 forks source link

Feature Request: combined streamed audio and video #82

Open theschles opened 1 year ago

theschles commented 1 year ago

Hi there! I've been searching all over the Internet to see how to have combined streamed audio and video -- so that if I attach an electret microphone / breakout board (perhaps with a pre-amp) to my ESP32-CAM, I can then stream both video and audio in a single RTSP URL.

I've found this -- which streams video.

I've found other repos which show how to stream audio.

I have yet to find anything that will combine stream audio and video.

Thank you for your help!

vivekanandbv commented 1 year ago

Adding a 2 way communication channel by adding a speaker to it and a push button that sends a http post webhook would make it the perfect doorbell camera

eerison commented 1 year ago

But is it possible to keep a communication in real-time? Do you have any example @vivekanandbv ,how to add this 2 way channel

rzeldent commented 7 months ago

Think this is a bit out of scope for the ESP32CAM. Yes, one could add a I2S mems microphone but is already having difficulties streaming.

theschles commented 7 months ago

If I read the manual correctly, https://github.com/AlexxIT/go2rtc can mux an audio and a video stream together.

I added Go2RTC as the sole consumer of the Esp32Cam feed when I found out the ESP32Cam apparently can only stream to a single recipient at any time. This became quickly apparent when I tried to have two tablets watch the Esp32Cam's video stream concurrently.

Go2RTC allows multiple clients to connect to a Go2RTC-hosted stream.

rzeldent commented 5 months ago

Hi,

This should be possible; multiple sockets are accepted... However, think this does not work because of lack of CPU...

rzeldent commented 5 months ago

Oh, and yes, having both image and sound would be great. Some boards do have an onboard mems microphone... Will look into this...

Kishlay-notabot commented 3 weeks ago

can anyone link some libraries which support realtime audio only streaming through rstp or any other protocol?