Onvif NVR

Have some questions or having issues with Software that is not currently listed? Post them here for the mods and other users to assist you.
Post Reply
jackelzel
Posts: 4
Joined: Mon Aug 29, 2022 8:31 pm

Onvif NVR

Post 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.
jack7
Posts: 904
Joined: Tue May 29, 2018 7:46 pm

Re: Onvif NVR

Post 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
jackelzel
Posts: 4
Joined: Mon Aug 29, 2022 8:31 pm

Re: Onvif NVR

Post by jackelzel »

Thanks!! The rtsp startime and endtime for playback works great, but is there a way to do it through ONVIF?
jack7
Posts: 904
Joined: Tue May 29, 2018 7:46 pm

Re: Onvif NVR

Post by jack7 »

jackelzel
Posts: 4
Joined: Mon Aug 29, 2022 8:31 pm

Re: Onvif NVR

Post 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
jackelzel
Posts: 4
Joined: Mon Aug 29, 2022 8:31 pm

Re: Onvif NVR

Post 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
umairabbasi
Posts: 11
Joined: Mon Apr 05, 2021 12:44 pm

Re: Onvif NVR

Post by umairabbasi »

@jackelzel

Did you ever figure this out?
Post Reply