kyriesent / node-rtsp-stream

Stream any RTSP stream and output to websocket for consumption by jsmpeg (https://github.com/phoboslab/jsmpeg). HTML5 streaming video! Requires ffmpeg.
MIT License
451 stars 166 forks source link

Any way to get audio with this #65

Open EverlyScott opened 4 years ago

EverlyScott commented 4 years ago

Is there a way to also embed audio to the page with this?

kyriesent commented 4 years ago

Looks like JSMPEG added audio support a while ago, so this should actually be pretty easy to accomplish. I think we just need to update the ffmpeg params to make this happen, so this will probably be a feature I try to implement soon.

florinnichifiriuc commented 3 years ago

You can use ` ffmpegOptions: { // options ffmpeg flags '-stats': '', // an option with no neccessary value uses a blank string '-r': 25, // options with required values specify the value after the key '-codec:a': 'mp2', '-ar': 44100,
'-ac': 1,
'-b:a':'128k' }

`