You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to Export Recorded Data from an ONVIF Camera to my computer #119
I've tried getting the rtsp link back in time range but maybe onvif doesn't support that. So now I want to export camera recording onvif but ExportRecordedData api probably doesn't support doing that either.
Please let me know if there is a way to do that. sincerely thank.
There are two ways to get recorded data from an ONVIF device - Replaying the recording using RTSP and using ExportRecordedData.
For using RTSP you need to use the commands from the Replay Service. Specifically GetReplayUri. Before that you would need to have found the recording you want to replay (based on timeline) - using the commands from the Search Service. Also for saving it to playable file format you would need to convert from the transport protocol (RTP) to a multimedia file format (MKV, MP4, etc).
For using ExportRecordedData you need to make sure the device supports it using the capability SupportedExportFileFormats,
Thank you for responding, that's quite helpful to me.
Using GetReplay, i get rtsp link from start to present, how to get Replay with time range?
How to know the device supports the capability SupportedExportFileFormats?
Activity
maxim-zapryanov commentedon Jun 24, 2021
There are two ways to get recorded data from an ONVIF device - Replaying the recording using RTSP and using ExportRecordedData.
lvhyml commentedon Jun 25, 2021
Thank you for responding, that's quite helpful to me.
Using GetReplay, i get rtsp link from start to present, how to get Replay with time range?
How to know the device supports the capability SupportedExportFileFormats?
maxim-zapryanov commentedon Jun 25, 2021
To play from a specific time you need to use the RTSP header field "range" for the PLAY command. See section 6.5.1 of https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec.pdf
and
https://datatracker.ietf.org/doc/html/rfc2326#section-12.29
The SupportedExportFileFormats capability can be checked through the GetServiceCapabilities on the Recording Service (https://www.onvif.org/ver10/recording.wsdl)
lvhyml commentedon Jun 25, 2021
Thanks for your help. I will try your solution and give the result back later.