node-rtsp-stream icon indicating copy to clipboard operation
node-rtsp-stream copied to clipboard

Any way to get audio with this

Open EverlyScott opened this issue 5 years ago • 2 comments

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

EverlyScott avatar Jul 14 '20 01:07 EverlyScott

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.

kyriesent avatar Jul 24 '20 22:07 kyriesent

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' }

`

florinnichifiriuc avatar Oct 27 '20 22:10 florinnichifiriuc