API FPS Command

NoProblems

Young grasshopper
May 10, 2021
38
16
United States
Question

I have cameras deployed using the SD5A425XA-HNR 4MP and SD49225XA-HNR 2MP models, streaming directly to YouTube via RTMP. However, I've encountered a firmware issue with Dahua cameras where the RTMP packet timestamp resets after some time, causing YouTube to perceive the stream as broken. There are two temporary fixes: either restarting the camera or adjusting the FPS setting in the camera's GUI, which reestablishes the connection with YouTube.

Currently, I manually change the FPS to resolve the issue, but it’s inconvenient to constantly monitor the stream and make adjustments. I would like to automate this process using an API that changes the FPS from 15 to 14 every 180 minutes and then back from 14 to 15 after another 180 minutes. How can I implement this automation?
 
+1^^^.
The HTTP commands you find in the API that work could be issued by Windows' Task Scheduler. I did this to a bluebird box camera every hour that I was streaming to YT via Blue Iris.
 
Last edited:
I used Windows Task Scheduler to change the FPS on my cameras every hour. Do I need to create two separate scripts one to change the FPS from 15 to 16 and another to switch it back from 16 to 15 and alternate them each hour, or can I just use a single script set to 15 FPS that runs every hour?