prsyahmi / v380

Extract h264 from V380 camera
MIT License
84 stars 32 forks source link

Night mode #12

Open sharun-s opened 3 years ago

sharun-s commented 3 years ago

Thanks for your work! Very useful and educational. This is not related to existing code but just wondering while looking at network traffic if any info seen on switching cameras at night?

I use some basic ffmpeg + bash scripts to monitor the rtsp stream + ffmpeg scene change filter to dump images only when motion is detected and notify phone. Its very half baked and basic but it works for my needs (at least during the day).

Issue is at around 6-630 pm some type of camera switch event seems to take place and I get some other view pointing somewhere else. Sometimes this switchover doesn't happen or it happens briefly and switches back to the original view which is good enough even at night.

So was looking for ways to prevent this switching event and found your project. Any details or advice would be appreciated! Thanks 🙏

sharun-s commented 3 years ago

Just an update - Turns out there is only one camera (I thought there were multiple cams to produce the panorama view - the single cam apparently does it with a fisheye/wide angle lens). In the evening it switches (based on light sensor?) from color to black and white mode and turns on 4 Infrared LEDs to deal with darkness. In my case this was producing an unusable feed because the camera was placed behind a glass window and the glare from the IR LEDs was messing up what was getting captured. So I disconnected the IR LEDs. The switch to black and white still happens but the area has enough light for the image to be clear.