Hello everyone. Thank you in advance for any assistance or guidance that you can provide regarding this matter.
I have an issue that is plaguing me on Ubuntu 20.04 and the OBS snap (edge - 27.2.1-modified (64 bit)) that comes pre-packaged with Advanced Scene Switcher 1.17.2
Skip to "HERE IS THE PROBLEM" below, if you're easily bored.
Before I get into it, let me give you a bit of background. I currently run four separate instances of OBS from parallel installations. In other words, I have installed 4 separate snaps of OBS, each one with it's own directory and configuration files etc. Despite the fact that they are parallel installs, they are each configured exactly the same with the exception of Sources and Scenes. I use 4 parallel installations because I have 4 separate live streams on YouTube, one for each police district in the City of Miami, that run 24/7. Running these four channels works flawlessly with few exceptions and those are typically due to local ISP or other non-OBS-related issues like power outages, etc.
I have been running this channel for about a year now, maybe slightly less, and I have decided to try and add some automation. I have some python running in the background that listens for a 1000MHz tone on the audio on each one of the channels and when this tone happens, my script goes to work via YouTube API to get the exact time code where it happened, compile a URL pointing to that timecode and then subsequently sends out notifications to both Twitter and Telegram via their respective APIs. It's not a huge deal but I'm proud of it. The issue with these links is that they effectively expire after about 12 hours. YouTube live does not keep historical video feed data after 12 hours. So, essentially, after 12 hours, every single link that was posted to Twitter or Telegram will ultimately fail. I set out to solve this problem by chopping up my 24/7 live feeds into smaller 8 hour chunks that start and stop with the corresponding shifts A, B and C at Miami PD, i.e. 08:00:00, 16:00:00 and 00:00:00, daily.
HERE IS THE PROBLEM:
I have added two macros within Advanced Scene Switcher. One named "Auto Stop Stream" the other named "Auto Start Stream"
Auto Stop Stream has three conditions for the same action:
If Date [ignore date component] 07:58:00; Streaming:Stop streaming
or Date [ignore date component] 15:58:00; Streaming:Stop streaming
or Date [ignore date component] 23:58:00; Streaming:Stop streaming
Auto Start Stream also has three conditions for the same action:
If Date [ignore date component] 08:00:00; Streaming:Start streaming
or Date [ignore date component] 16:00:00; Streaming:Start streaming
or Date [ignore date component] 00:00:00; Streaming:Start streaming
The STOP macro works every time on all 4 instances...
The START macro fails intermittently on all 4 instances...
There are no errors, no entries in syslog, nothing... The macro to start the streaming simply doesn't run whenever it doesn't "want" to! HAHA
I have moved "macro" to the top of the priority list from suggestions on other discussions. I have plenty of available RAM (over 90% available) and processing power (over 70% available). I have quintuple checked the times and settings. I have tried using "repeat every 8 hours" instead of using three separate "or" conditions. The result is always the same; The STOP streaming is 100% reliable, the START streaming has a mind of its own.
I make absolutely certain that the stream endpoints on the YouTube side are scheduled for the correct time and that they are configured to receive a "start" parameter etc... However, even if these endpoints were not configured properly, OBS simply makes no attempt to start the stream as you can see by the fact that the "Start Streaming" button isn't even depressed. Again, no errors, no syslog, nothing. Screen savers are off, sleep is off, snooze is off, monitor stays on 24/7 etc etc...
I'm at my wit's end and I need someone's help. Again, thank you in advance for reading this and I appreciate any assistance or guidance that anyone can provide.