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

you should add some ffmpeg's params like this #64

Open kingyazh opened 4 years ago

kingyazh commented 4 years ago

this.spawnOptions = [ ...this.frontFlags, "-i", this.url, ...this.midFlags, '-f', 'mpegts', '-codec:v', 'mpeg1video', // additional ffmpeg options go here ...this.additionalFlags, '-' ]

rogeliozx commented 4 years ago

let me check that with the library but if it doesn't work I recommend dividing it into microservices

kyriesent commented 4 years ago

@kingyazh I might add an option to do something like:

ffmpegOptionsOverride: [ whatever you want ]
}

and just drop it straight in. Thoughts?