agsh / rtsp-ffmpeg

Node.js FFMpeg wrapper for streaming RTSP into MotionJPEG
MIT License
249 stars 84 forks source link

High Memory Footprint, How To Change Video To Lowest Quality #29

Open PrestonMoore44 opened 5 years ago

PrestonMoore44 commented 5 years ago

screenshot 2018-09-17 09 07 32

We're running a 3 * 3 camera setup rotating by 9 cams on a 10 second interval. The issue we're having is the memory footprint is hovering around 800 MB. Is this normal? How can we reduce it? Perhaps quality settings? Can you explain in better detail the effects of the configurations settings ie: new rtsp.FFMpeg({input: uri, resolution: '640x360', quality: 12}) <--- This part!

Thanks!

pattarmanjunath50 commented 5 years ago

Hi, When I used image or canvas for rendering the stream data, The memory started gradually increasing and eventually the browser crashes. I think its because of caching of the image data in the browser. Any solution for this?