esp32cam-rtsp icon indicating copy to clipboard operation
esp32cam-rtsp copied to clipboard

Feature Request: combined streamed audio and video

Open theschles opened this issue 2 years ago • 7 comments

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!

theschles avatar Jul 13 '23 20:07 theschles

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

vivekanandbv avatar Aug 22 '23 15:08 vivekanandbv

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

eerison avatar Aug 31 '23 14:08 eerison

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.

rzeldent avatar Feb 02 '24 20:02 rzeldent

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.

theschles avatar Feb 05 '24 00:02 theschles

Hi,

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

rzeldent avatar Apr 16 '24 13:04 rzeldent

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

rzeldent avatar Apr 16 '24 13:04 rzeldent

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

Kishlay-notabot avatar Aug 23 '24 14:08 Kishlay-notabot