vMix Forums
»
General
»
General Discussion
»
Detect whether rtsp is inputting via a script
Rank: Member
Groups: Registered
Joined: 6/20/2020(UTC) Posts: 11 
|
Hi all! I have a camera input coming into vMix that periodically drops rtsp. I can reset it by right-clicking and selecting 'reset'.
I set up a cron to reset it every 15 minutes. But I'd like to check it and reset it based on whether or not it is providing an image, not just reset it every time. I tried running a script to parse an xml file, but my inputs appear to be the same whether or not that camera is streaming. This camera doesn't have audio, so that's not an issue. Input looks like this: <inputs> <input key="TheKey" number="1" type="Stream" title="Camera1" shortTitle="Camera1" state="Running" position="0" duration="0" loop="False" muted="True" volume="100" balance="0" solo="False" audiobusses="" meterF1="0" meterF2="0" gainDb="0">Camera1</input> </inputs>
Is there anything I can use via the vMix API to programmatically determine whether or not my rtsp input isn't carrying an image/is black? Any setting I can add and use? Thanks in advance.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/14/2013(UTC) Posts: 142  Location: uk Thanks: 2 times Was thanked: 24 time(s) in 20 post(s)
|
you dont need to use the audio from the camera can you send some audio even just tone with the video signal and use an OnAudioMeter trigger to trigger your reset script
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Detect whether rtsp is inputting via a script
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close