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?
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?