Live view multiple RTSP streams efficiently
Posted: 15 Dec 2020 01:06
I have two IP cameras that I like to monitor so I can be aware when customers are arriving. Watching one via RTSP stream straight up in VLC uses 1% CPU which is great. So, when I'm at work I fire up two VLC instances and move them into the corner of one of my monitors where they sit the rest of the day and only sip a measly 2%. The video doesn't lag, it's great compared to watching in the camera system's browser interface which used 20% and lagged hard.
Wanting to make things easier on myself I figured I would spin up a 'mosaic' with VLC so the two cams open with a single click and are bonded into one VLC instance. Well, that works nice but it uses 6% CPU as compared to 2%, probably because it's transcoding the two videos into a new one on the fly. Fair enough because I guess that's what I asked for... but between the choices I'll stick with the 2% dual instances and 10 seconds of manual daily positioning.
But... before I throw in the towel I figured it best to ask if there are any other suggestions for showing two streams side by side while retaining the better resource efficiency. The two RTSP streams are from identical cameras, same resolution (low 640x360), same framerate(15), and I don't want any audio. I would also be happy scripting the two separate VLC instances to launch at specified screen positions just to save the manual handling each day but I don't seem to be able to get the --video-x and --video-y settings to work, but that's a different topic... I just wanted to mention that it has been though of.
Thank you.
Wanting to make things easier on myself I figured I would spin up a 'mosaic' with VLC so the two cams open with a single click and are bonded into one VLC instance. Well, that works nice but it uses 6% CPU as compared to 2%, probably because it's transcoding the two videos into a new one on the fly. Fair enough because I guess that's what I asked for... but between the choices I'll stick with the 2% dual instances and 10 seconds of manual daily positioning.
But... before I throw in the towel I figured it best to ask if there are any other suggestions for showing two streams side by side while retaining the better resource efficiency. The two RTSP streams are from identical cameras, same resolution (low 640x360), same framerate(15), and I don't want any audio. I would also be happy scripting the two separate VLC instances to launch at specified screen positions just to save the manual handling each day but I don't seem to be able to get the --video-x and --video-y settings to work, but that's a different topic... I just wanted to mention that it has been though of.
Thank you.