Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find recording from nvr within specific time #298

Open
Puneet94100 opened this issue Aug 23, 2023 · 4 comments
Open

Find recording from nvr within specific time #298

Puneet94100 opened this issue Aug 23, 2023 · 4 comments

Comments

@Puneet94100
Copy link

Puneet94100 commented Aug 23, 2023

we are using Dahua NVR and we stream live cameras through it. As Dahua stores the recordings in somewhere we want to access the past recordings (of specific time). The code I mentioned gives the whole saved recording of NVR. But as I said I want specific time's recording. I have provided the filter for that as well but it seems to be not working probably. Please guide.

Link to download the onvif2 library

https://github.com/yingchengpa/python-onvif2-zeep/tree/master

Code

from onvif2 import ONVIFCamera, ONVIFService

nvr_ip = "192.167.11.155"
nvr_username = "admin"
nvr_password = "admin123"

nvr = ONVIFCamera(nvr_ip, 80, nvr_username, nvr_password,wsdl_dir= "/home/itsupport/Desktop/vms_1/python_onvif2_zeep_master/wsdl" )

media_service = nvr.create_media_service()
record_search = nvr.create_search_service()
replay = nvr.create_replay_service()

filter= "boolean(//Track[TrackType = 'Video']),2023-08-20T08:07:43.000Z,2023-08-22T08:07:43.000Z,1,10,1"
scope = {"Scope" : {"RecordingInformationFilter": filter },
"KeepAliveTime":"PT60S"}

source_token = record_search.FindRecordings(scope)
get_result = record_search.GetRecordingSearchResults(source_token)

@Puneet94100 Puneet94100 changed the title Find recording within specific time Find recording from nvr within specific time Aug 23, 2023
@RogerHardiman
Copy link
Collaborator

Thank you for the Issue Report.
The Issue Report is about using a Python Library to talk to your NVR. That that is someone else's software. This forum is for users of the NodeJS ONVIF Library called "agsh/ONVIF" and we can only help with issues relating to the NodeJS library in this forum.

If you have questions relaying to this NodeJS ONVIF library we'd try and help.

Also, I don't have a Dahua recorder so cannot try anything myself

Roger

@Puneet94100
Copy link
Author

Puneet94100 commented Aug 25, 2023

Thank you for giving your response.

@Puneet94100
Copy link
Author

Can you please help me to find the the recording within specific time using NodeJS. The issue is regarding to filter that i am applying to filter the recording within specific time. Please help me .

@udhay24
Copy link

udhay24 commented Sep 8, 2023

hey guys, newbie here. i am also looking for a solution to this. Can someone guide us on how to retrieve the recording for a specific time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants