Hi all,
I’m facing an extremely weird issue and I’m unsure if it’s related to AI Bridge or XProtect itself.
Here’s the situation:
- We’re working with numerous Bosch NDE-3502-AL cameras across a few recording servers connected to XProtect Corporate 2022 R3.
- All cameras are set to run at 1080p.
- AI Bridge v1.6 is being used on the same network and communicates just fine.
- On a remote machine, we’re running a custom Python (3.11) application that uses OpenCV (4.8).
- That Python app queries the AI Bridge for streams. The user then selects one of the streams at which point the code grabs a frame from the relevant RTSP stream and displays it on screen.
- The app works perfectly with some of the cameras; however, there are other cameras where image corruption/tearing happens 90-95% of the time.
- We’ve tried changing firmware versions with no luck.
- If we change the problematic camera’s profile to use 720p, the corruption/tearing goes away. We find this part most bizarre.
We also ran tests where we pulled a problematic camera off of XProtect (temporarily) and used the camera’s own RTSP stream (i.e. XProtect and AI Bridge were not involved in producing or consuming the stream). Doing this, the corruption/tearing was not present.
The above seems to point at an issue somewhere with either XProtect or AI Bridge in how it’s ultimately presenting the streams for consumption.
I’ve tried googling around for issues concerning OpenCV and RTSP. I’ve even implemented the “frame grabbing” code to run in a separate thread from the main application.
If it helps, here’s an example of the output we see when image tearing occurs:
[h264 @ 0x7f3310006480] top block unavailable for requested intra mode -1
[h264 @ 0x7f3310006480] error while decoding MB 90 0, bytestream 89025
[rtsp @ 0x7f3310001680] RTP: PT=60: bad cseq 1538 expected=1638
[rtsp @ 0x7f3310001680] RTP: PT=60: bad cseq 157f expected=167f
[rtsp @ 0x7f3310001680] RTP: PT=60: bad cseq 1588 expected=1688
If anyone has any ideas or suggestions concerning this issue, your help would be very much appreciated.
Thank you!
