API FPS Command

NoProblems

n3wb
Joined
May 10, 2021
Messages
15
Reaction score
7
Location
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?
 

NoProblems

n3wb
Joined
May 10, 2021
Messages
15
Reaction score
7
Location
United States
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?
 
Top