How to access device based on video file from ONVIF Bridge ?

Is it possible to access Stable FPS device by ONVIF Bridge ?

If I have a video file how I can organize a device to have access by ONVIF Bridge ?

Where can I find installator for CameraSim.exe from this tutorial https://www.milestonesys.com/globalassets/marketplace/uploaded-assets/00120000013d60raaq/usesimulatorcamera.pdf

Regarding the 1st question, yes, it is possible.

2nd question, please see thins link –

https://doc.developer.milestonesys.com/html/index.html?base=gettingstarted/stablefps.html&tree=tree_4.html

At the bottom, there is a link “How to make your own StableFPS stream (PDF)”, please read this page too.

NOTE - The last link that you gave us is Market place link – it is possible to see the pdf file but you need to buy this application/sample, you cannot download it for free.

@Rie Kiuchi (Milestone Systems)​

Could you give me some hints about the configuration of StableFPS to make it accessible through the ONVIF bridge?

Right now I can see rtsp stream in VLC for real cameras, but for StableFPS device VLC connects to the stream and shows nothing.

I use this URL to see the stream:

rtsp://:554/live/<CAMERA_GUID>

Open Network Bridge (formerly Onvif Bridge) requires h264. Please verify you are using h264. Before trying out with Open Network Bridge please verify the stream works in general by seeing it in the Smart Client.

@Rie Kiuchi (Milestone Systems)​

I use the following config for StableFPS

100 VideoCodec H264

102 VideoH264Files MyVideoFileName

The video is available in Management Client and in Smart Client

Hi Anton,

There’s nothing special in StableFPS settings in relation to ONVIF. Any H264 StableFPS camera should be accessible just like a real camera.

@Nikolay Dimitrov​ I can see ONVIF stream for a test video included in XProtect installation _1920x1080_30_5_shoes_short

But for any other H264 video in raw container that is accepted by StableFPS when I open ONVIF stream with VLC no frames are read, but time changes.

_1920x1080_30_5_shoes_short video properties:

Video: MPEG4 Video (H264) 1920x1080 30fps [V: h264 high L4.2 yuv420p 1920x1080

My video properties:

Video: MPEG4 Video (H264) 1920x1080 25fps [V: h264 high L4.0 yuv420p 1920x1080

Can this diff explain why I don’t see any frames in ONVIF bridge stream ?

hi Anton,

We’ve not seen any issues with ON Bridge and H264 cameras. Is it really important that you use exactly this video that you mentioned? Can you try with another one (e.g. the one that you said works) or with a real camera instead?

I don’t really know how to proceed here - the product works but not a particular StableFPS video… so the problem must be in the video, don’t you agree?

Every video that I take and convert following the procedure in the StableFPS manual has problems with the ONVIF bridge.

Can you check that the stream from StableFPS is working through the ONVIF bridge for that video?

https://drive.google.com/file/d/1P41Qfji7cuJc4rYEXOTPY6VwTvRpbfDd/view?usp=sharing

The conversion to H264 Raw container should be straightforward and I don’t understand what is a problem in my converted videos that doesn’t permit milestone to stream the StableFPS of this video through the ONVIF bridge.

Hi,

I tried with your video and everything works fine.

Which version of the software you use - both Open Network Bridge and XPCO?

Kind Regards,

Svetlana

Milestone ONVIF Bridge Server 13.2a build 187

Milestone XProtect Professional+ 2020 R2 Test

Can you try to update your version - you can update to the latest one.

In general we do not support old versions of Onvif with newer version of XPCO. The other way around is fine.

It works.

Right now I can see a stream. But the first frame arrives 5-10 seconds after the connection to stream in VLC. (in comparison the test video is streamed instantly).

Do you have the same behavior on your installation?

It behaves the same - sometime starts fast, sometimes not. This might be related to the GOP size. If it is bigger, it will be after the first I frame is received , so that video can be played fluent.

I see. Another problem that I noticed is that the newer version of ONVIF bridge 21.1b build 7008 is not accessible by Opencv VideoCapture

even with correct user:password the underlying FFmpeg driver returns 401 Unathorized error for DESCRIBE method.

That was not the case for Milestone ONVIF Bridge Server 13.2a build 187

Can you give me some debugging tips for RTSP stream of ONVIF Bridge?

You may refer to this KB for this problem : https://supportcommunity.milestonesys.com/s/article/changes-digest-authentication-RTSP-service-in-2021-R1-troubleshooting?language=en_US