Page 1 of 1

Onvif NVR

Posted: Mon Aug 29, 2022 8:35 pm
by jackelzel
How can I use ONVIF client to fetch recordings from NVR? My NVR shows DataFrom and DataUtils spans over 2 days but no individual tracks. It's all one full video and audio file.

Re: Onvif NVR

Posted: Tue Aug 30, 2022 9:55 am
by jack7
It looks like you may be able to find and download your media files using
https://support.amcrest.com/hc/en-us/ar ... TP-API-SDK

Re: Onvif NVR

Posted: Tue Aug 30, 2022 11:26 am
by jackelzel
Thanks!! The rtsp startime and endtime for playback works great, but is there a way to do it through ONVIF?

Re: Onvif NVR

Posted: Tue Aug 30, 2022 8:08 pm
by jack7

Re: Onvif NVR

Posted: Wed Aug 31, 2022 11:59 am
by jackelzel
With the replay streaming spec for Amcrest NVR of 8 channels, I got replay url in the form of rtsp://<ip>:<port>/cam/playback?token=RecordMediaProfile00000 (the token changes per channel) which is not same as the one provided in SDK PDF
VLC can play the replay url from the beginning of recorded time but starttime with the replay uri doesn't work.
VLC can play the RTSP playback url provided in the sdk from a specific timeframe.

I'm wondering why this difference is and how can I work with both the protocols

Re: Onvif NVR

Posted: Tue Oct 04, 2022 1:26 pm
by jackelzel
I tried setting the rtsp headers as specified in onvif streaming spec https://www.onvif.org/specs/stream/ONVI ... g-Spec.pdf
valid response is returned only for the first day of recording, there's 500 internal server error for any range other than first day.
PLAY rtsp://192.168.4.23:554/cam/playback?token=RecordMediaProfile00000&proto=Onvif RTSP/1.0
Session: 349325624753
Require: onvif-replay
Range: clock=20220904T130101.100Z-

RTSP/1.0 200 OK
CSeq: 6
Session: 349325624753
Range: clock=20220904T130101Z-20220904T234334Z
RTP-Info: url=trackID=0;seq=52007;rtptime=52007,url=trackID=1;seq=52007;rtptime=52007


PLAY rtsp://192.168.4.23:554/cam/playback?token=RecordMediaProfile00000&proto=Onvif RTSP/1.0
Session: 349325624753
Require: onvif-replay
Range: clock=20220906T130101.100Z-

RTSP/1.0 500 Internal Server Error
CSeq: 7
Session: 349325624753

Re: Onvif NVR

Posted: Tue Mar 14, 2023 11:40 pm
by umairabbasi
@jackelzel

Did you ever figure this out?