grigory-lobkov / rtsp-camera-view

View IP-camera RTSP in grid, auto bandwidth, full-screen, command line support
Apache License 2.0
197 stars 43 forks source link

More then 8 cameras? #9

Closed Yeomans closed 6 years ago

Yeomans commented 6 years ago

Hi,

Is there an issue that prevents more than 8 cameras being connected?

It seem that when a 9th is connected it just shows the VLC icon on a white background.

Cheers

Yeomans commented 6 years ago

Actually nevermind...seems that restarting the program after configuring allowed it to work!

Yeomans commented 6 years ago

Ok I spoke too soon haha. It seems like going more than 9 makes the program unstable and it crashes

grigory-lobkov commented 6 years ago

Thanks for testing my app! I'm trying to do my best to make app able working 24/7/365. Your case is really interesting!

Please, write an OS version (with SP#), Framework version, VLC version, my app version. I will test it. As I understood, to reproduce the bug, I need to do: 1) delete config (or install fresh 1.0.0.5) 2) when default matrix 2x2, adding 10 cameras to list 3) add 4 cameras to preview 4) do matrix size 3x3 (on this step I will get one white rectangle) 5) add 5 more cameras to preview 6) do matrix size 4x4 7) add 1 more camera to preview (on this step the app will crash in 1-10 min)

Is it right?

Can you check the CPU load for each core & Ethernet bandwidth, when you using the app? I will try to make screen capture (by bandicam) when testing. If you able, please, make it too.

Yeomans commented 6 years ago

Yep those steps seem correct. Started with 2x2. Then 3x3 but 9th camera only displayed the VLC icon. After restarting the program it displayed though. Then I tried 4x4 and after adding a 10th camera the program would crash on startup.

I did this on Windows Server 2012 R2 as I was testing it but it will be deployed to a Windows 8.1 box so I will test again on that and report details.

Thanks

Yeomans commented 6 years ago

Soo this is a bit annoying, I couldn't reproduce the problem!

I setup a 4x4 grid of 16 cameras on a Windows 8.1 box. Intel Dual Core and 4GB ram. Pretty old.

I had no stability issues but it did struggle after I added the last few cameras. But that's to be expected with the load. The rtsp resolutions were 1024x576. https://i.imgur.com/TaNNnLi.jpg Network would fluctuate a bit but peak at about 30Mbps.

Since it was stable there I copied the settings.xml to the previous machine I was testing on and loaded it up. Surprisingly everything loaded and it was smooth as silk. https://imgur.com/GPRBvIs.jpg

I even created the grid from scratch on the first PC and it was still fine.

The one thing that I did differently was use lower resolution streams. I think on my intial test when I had the issue I was using 1080p streams and maybe that caused a problem. I don't think it was necessarily a resource issue though because its very low with the 576p streams.

Anyway I guess this is basically a non issue. Don't really know what went wrong the first time!

Ziowebbo commented 6 years ago

Good morning, I'm using a matrix of 3x3 without any problem. In my case I also use 3 instances of the software, each of 3x3 matrix for a total of 27 streams, on a single computer. May I suggest a lack of power by the processor or the graphics unit?

grigory-lobkov commented 6 years ago

My Win10 i3-6300 can handle only 13 threads of 960p 15fps (some of them is 1080p). If I add one more camera, one CPU core load became 110% and VLC can't start a new stream. screen capture

But first time I've started to add cameras, some strangenesses happens when adding 10-12 cameras. I think Windows learned, what resources need to my app... screen capture

When I switched to substreams (640x480 20fps), I got only 8 additional cameras. Not much. screen capture

To beat this issue, I need to split sources to separate threads (asking help in #2)

My advice will be to use a high GHz processors, and minimal substream resolution, plus minimal fps. When accident occurs, double click will switch camera for good-resolution stream.

May be a good cheap solution will be in using several monitors, connected to one PC, as @Ziowebbo advice. Then, the CPU load will split between CPU cores.

Yeomans commented 6 years ago

Interesting.

Yea i'm not too sure why i was having issues configuring it the first time around as they didn't come back on subsequent setups. Perhaps just something else on my computer at the time was affect it. Feel free to close this issue as the reason I opened it is no longer relevant.

grigory-lobkov commented 6 years ago

No problem. Please, tell me if the program has met your needs, or not. You can do it in this issue, or by e-mail gg81 -at- yandex -dot- ru

Thank you!