Pulling of VOD stream in form of URL from Milestone

Integrating our application with Milestone, is there a simple way if we can play the VOD stream of RTSP in the form of a URL?

If I am just pulling a maximum of 3 recorded streams at a time, (out of hundred streams) is there going to be a large incremental resource utilization for transcoding at the Milestone backend?

https://doc.milestonesys.com/2022r1/en-US/standard_features/sf_onvifbridge/onvif_usingonvifclientstovi.htm?TocPath=%E7%AC%AC%E4%B8%89%E6%96%B9%E9%9B%86%E6%88%90%7CMilestone%20Open%20Network%20Bridge%7C%E6%93%8D%E4%BD%9C%7C_____1#%E7%AE%A1%E7%90%86%E8%A7%86%E9%A2%91%E6%92%AD%E6%94%BE

Tried using command like in the document: "vlc.exe --rate=-1.0 --start-time=3600 “rtsp://basic:basic@bgws-pvv-04:554/vod/943ffaad-42be-4584-bc2c-c8238ed96373” but could not get the video recording

Hi @Milestone Developer​ any advice you can give please?

Hi @Shi Song Tan

Playing 3 streams at a time should be fine for the backend.

Can you provide some more info:

  • does Live work fine in VLC?
  • are you sure your camera has recordings?
  • have you double-checked the address (hostname, port, camera ID)?
  • what exactly happens when you attempt to play the video in VLC?

Hi Nikolay, response in-line:

• does Live work fine in VLC?

A: Yes it works fine for Live views. We are able query the available cameras based on the camera names and retrieve the corresponding live views of the CCTVs via the ONVIF bridge set up in the Milestone server

• are you sure your camera has recordings?

A: The camera recordings are being recorded in a Milestone recording server, and we were shown that the time/date that we are trying to retrieve for the particular group of cameras has recordings and is able to playback from Milestone system

• have you double-checked the address (hostname, port, camera ID)?

A: We assume that would be the same information for the live view?

• what exactly happens when you attempt to play the video in VLC?

A: At the moment there is no feed to play on VLC. We tested on a few cameras which we were able to retrieve live feed. For example, we sent a request token to Milestone for a recording for a particular camera with a particular timestamp and we got a response token which allows us to GetRecordingSearchResults. However, the search could not render any results.

Hi @Shi Song Tan​

In general what you describe should work.

You can find answers to similar questions here and here.

Please bear in mind that VLC supports only relative times. The RTSP protocol itself supports also and absolute times.

In your example this parameter “–start-time=3600” will offset the playback in 1 hour (3600 seconds) after the beginning of the recordings in the RS DB. And I’m pretty sure GetRecordingSerachResult returns absolute times. So if you want to use VLC, you have to convert absolute times to relative to the DB start.

Hi @Petar Vutov

Could you kindly attach the two links that you meant to attach in your reply please?

The links are there, just click them :slight_smile:

Anyway, once more:

https://developer.milestonesys.com/s/question/0D53X0000A2D8aHSQS/how-to-replay-rtsp-video-from-onvif-bridge-with-a-specific-time-in-vlc-player

https://developer.milestonesys.com/s/question/0D53X00007NfnfOSAR/is-there-any-way-to-get-playback-rtsp-url-of-a-camera-with-start-datetime-and-end-datetime-via-onvif-bridge-services

Thanks Nikolay,

We have actually referenced these 2 links before, and verified that it is not a port issue.

An example:

vlc.exe rtsp://basic:basic@bgws-pvv-04:554/live/943ffaad-42be-4584-bc2c-c8238ed96373 - this works

vlc.exe --rate=-1.0 --start-time=3600 "rtsp://basic:basic@bgws-pvv-04:554/vod/943ffaad-42be-4584-bc2c-c8238ed96373 - does not work

Is there anything on the Milestone side to set-up or built for this VOD stream or is it something that we can directly fetch? ​​

There’s nothing more to set-up…

I just gave this a shot and it works

"C:\Program Files\VideoLAN\VLC\vlc.exe" --rate=-1.0 --start-time=3600 rtsp://nikolay:MyPa$$w0rd@ONB-SRV-01.milestone.dk:554/vod/df63e4b3-b599-4ea0-902e-6ea0834b08d5

Did you have a look at product logs?

HI @Nikolay Dimitrov​ ,

Thanks for your reply. Which product logs are you referring to? Is it VLC logs or is there some logs in Milestone we can refer to?

This is strange as the live view works but not the recorded view.

Regards,

Shi Song

Of course it is strange that live view works but not the recorded view.

As I said, I cannot reproduce your problem so any useful info provided by you will be appreciated. E.g:

  • what exactly happens when you try to open a stream in VLC? What’s the error you’re seeing - message, screenshot, logs…
  • log contents - Milestone RTSP log (look in %programdata%)
  • WireShark trace

Hi Shi Song Tan,

Milestone Development cannot reproduce the issue the problem is no longer related to creating new code or integrating our existing code.

The only advice Milestone Development can give is to try troubleshoots with different users, or try different cameras - but again, this is not related SDK anymore. As this is not related to software development with the MIP SDK, which is the focus of this forum, please ask again in the support community, you should get better help from the partners using the support community.

https://supportcommunity.milestonesys.com

Hi @Rie Kiuchi (Milestone Systems)​ / @Nikolay Dimitrov​ ,

Noted. We managed to get a response (same rtsp stream can play live), meaning there should be a recording, but was not able to playback. Any idea what could be a possible cause of this?

Hi,

Something you said is bothering me so I want to make it clear: live feed does not mean your stream is recorded. Can you make sure that your camera is properly set-up to actually record (using for examle Smart client or Web client)?

Hi @Nikolay Dimitrov​,

We have asked the same question to the technology provider that owns and manage this milestone server instance multiple times. They have replied that recordings have been ongoing and showed screenshots of camera view recording from the client software,

Picture2.jpg

Hi @Nikolay Dimitrov​,

Also the VLC player was able to get a response, so there should be some data/recordings there just that it can’t be played?

The only advice I can give is to try troubleshoots with different users, or try different cameras - but this is not related SDK anymore. As this is not related to software development, which is the focus of this forum, please ask again in the support community, you should get better help from the partners using the support community.

https://supportcommunity.milestonesys.com

@Nikolay Dimitrov,

For some reason we are able to pull the VOD streams now, probably a restart of the server or certain services?

We are now trying to retrieve accurately the event that happened. From a given timestamp of an event given by milestone, we are trying to pull the VOD stream.

We understand that the way the VOD stream is being pulled, if we wanted a to play a specific timing of recording, we have to account the number of seconds that has elapsed from the beginning of the recording.

From the ONVIF API we used getRecordingInformation but the time that is being reflected seems erroneous as the event happened, for example at 22-10-06 18:02, but the pulled recording information is:

Start: 22-09-06 02:10:28

End: 22-10-02 02:10:28

Can you kindly advise?

Hi,

A full month has passed and your last question is unrelated to the title and to the original issue. Please open another thread for consistency.