cam2web icon indicating copy to clipboard operation
cam2web copied to clipboard

Audio streaming?

Open DRSDavidSoft opened this issue 4 years ago • 3 comments

Feature request

The cam2web.exe is a great tool to stream from my capture card in real-time!

However, a feature that I really miss is the ability to stream the audio channel as well, kind of like what the similar IP Webcam for Android tool does.

Will it be possible to stream the sound as well?

DRSDavidSoft avatar May 15 '20 18:05 DRSDavidSoft

Currently it can not be done. Was not planned so far. And requires quite some work.

The application does streaming using MJPEG format. Which is simply a stream of individual JPEG images separated by some delimiter. There is not proper video encoding. Audio simply can not be added to MJPEG.

Two options are:

  1. Do some proper video streaming, like RTSP. This is a major rework.
  2. Add sound streaming as an option separate from MJPEG.

cvsandbox avatar May 18 '20 10:05 cvsandbox

Thank you for the reply, I'm especially interested in option 2 - since there already are RTSP stream servers (but I prefer the MJPEG streaming for local network) and I'd prefer to avoid putting encoding processing on the server.

I believe going the second route would pretty much fit the scope of the project, and personally think that having audio and video to be streamed separately would be a useful feature - rather than an issue.

Whenever you have time, I'd appreciate it if you could look into implementing sound as a separate, optional stream. 😄

DRSDavidSoft avatar May 18 '20 10:05 DRSDavidSoft

Hi, I really liked the project and i am using it to learn on my raspberry pi. I would like to know if i can contribute to implement this requested feature or any other feature. i would be happy to contribute in any way possible. If yes, then is there any contribution guidelines that i can refer to. Unfortunately i could not see it. Regards

ishansheth avatar Jun 07 '21 16:06 ishansheth