OK - so with my IP security cameras, they kept getting out of sync when launched via MPV and RTSP stream…
I wanted a shell script or some solution to launch BOTH at the EXACT same time… I don’t think cron would good for that (for a start - I’ve NEVER tried launching a GUI application from cron)…
Went hunting for solutions - they looked way too complex for something that should be simple… Gave up :
I don’t use that loop “loopy_cnt” - but I left it there in case I decide to try that method…
I just wish I could do BOTH those last two lines AT THE SAME TIME, instead of in that sequence, even if it less than 1 second delay…
But it kinda works…
The only way to do that in a serial computer is to make them one process.
Multitasking is a sham, it makes it look like 2 things are happening at once, but it is really sharing time slices.
I’d read about this a few years ago - interestingly - it didn’t come up in any google searches (maybe I should start using duck duck go)… Just installed it…
OK - tried parallel - doesn’t seem much different from running two commands in a bash script…
And it launches the MPV sessions on my main display - not the display I’m running that terminal session in. With my shell script, it fires up the MPV windows on the same screen as the terminal session…
So - I think I’ll just use my shell script… if the cameras get several seconds out of sync, I’ll just kill the feed and run my shell script again…
Now I just gotta read up on launch options (geometry) for MPV i.e. which screen, co-ordinates and dimensions of each MPV window…
–geometry=1280x720 works fine…
Now I need some logic to decide the X/Y position of each window, so that the first camera is at 0,0, and second camera is at 1281,0