Closed janserlemesf closed 7 years ago
Do you assume dynamical change source of the stream when you change the input
property?
I made a change to display only one camera per requisition. I have many cameras and wanted to display them without registering them on server.js. Sorry for English, I'm Brazilian.
So you can create a text file or json file with the cameras links, read and deserialize into cameras object to display the number of cameras you want.
Thank you! It worked the dynamism. Now I have the following problem: After a while, the image blinks.
Perfect! Where does the image blinks? In the client side? Are you using a HTML javascript UI enviroment to display the images? If yes, try to avoid img HTML tag. It causes problems in real time image update. I recomend you to use canvas for this. You can check this problem watching the javascript console . This weekend i wiil upload an example with canvas.
Hi @janserlemesf I have uploaded a complete example of canvas ui interface that solves the problem of blink images. This method has only the inconvenient in images with alpha channel, but it doesn't mind because in ip cameras you don't need images with alpha channel. I have tested it with a comercial IP camera and the images are showing perfectly.
Hi @Seikon! Thank you very much! I'll do some testing with your example.
Hi @Seikon! When I have many cameras, some cameras stop responding or hang up. Do you know what can be happening? Thank you!
If you have many cameras viewing at the same time, maybe you have problems with the capacity of your network. It depends of your network, but you could follow this tips for improve performance:
Gray scale images are lighter than RGB(colour) images (3 times more lighter). So if you don't need coloured images you can do this transformation with OpenCv on the server side.
Low the resolution and the FPS of your camera. This relief the network load in your app.
Try to connect as far as possible the cameras, and the machine server through the LAN network interface instead WLAN or WIFI interface. This increases the speed of transmission on your server and cams.
Images should be colored. The camera resolution is already as low as 640x480, but the problem continues. Ex: Http://lemon360-multsoft.ddns.net:6147/?id=17
I can't access to the url. Maybe you could upload a video by youtube or any other platform with the result
Hi @Seikon ! I put in another served. It really was the network, now it worked perfectly. Thank you so much!
Perfect! I'm gonna close this issue, please if you have another problem or contribution open new one.
What is the best way for dynamic links? I tried to get the link as a parameter, but it did not work very well.