After further investigations I found the reason for the heavy CPU load. Originator for this behaviour ist the parameter “ELECTRON_ENABLE_GPU=1”. If this parameter is undefined my CPU load is as expected.
I’ve also had a deeper look to run the “VLC video player” with RTSP streams from my cameras. Using the following command line parameter leads in my environment to best results:
var opts = { detached: false, env: environ }
var args = ["-I dummy",
"-q",
"--zoom=" + this.window.zoom.toString(),
"--video-x=" + this.window.x.toString(), // x,y-positioning does't work
"--video-y=" + this.window.y.toString(), // ...
"--no-audio",
"--video-on-top",
"--no-video-deco",
"--no-osd",
"--no-video-title-show",
"--network-caching=1000",
"--rtsp-tcp",
`${this.streams[stream].url}`
]
//console.log(playerPath + this.player, args)
this.streaming.player = spawn(playerPath + this.player, args, opts)
