Comments (11)
I use YOHO_LAB code, maybe will help you
from hikload.
Hi. Do you have by any chance any non-alphabet characters in your password/username that might trigger this bug?
If yes, can you try to escape them with \ and see if this works ?
from hikload.
Hello @Tedyst
Actually no, lets say this are my credentials
user: emmanuel
pass: Emmanuel.
from hikload.
I have tried setting the password to my DVR to Emmanuel.
, but I couldn't reproduce the bug. But I still moved from using my basic http auth to the proper one from the requests package. Can you verify if this is fixed in master?
If not, can you see if http://user:password@NVRAddress/ISAPI/System/capabilities
works in the browser?
from hikload.
@Tedyst Sorry! it is not "Emmanuel." is just "Emmanuel" XD, that dot failed there hahaha.
I tried the url you mentioned and it works. Any clues?
thanks for your help by the way
from hikload.
You said that you were using this code as base for something. Did you include the username and password in the serverpath or in the auth parameter like here?
Lines 32 to 33 in b3eb7be
from hikload.
Ok look, i have this:
I have too DVRs, One with IP cameras and other with no IP cameras.
DVR without IP cameras: Still got the unauthorized problem
Trying to download from camera 101
<?xml version="1.0" encoding="UTF-8" ?>
<userCheck>
<statusValue>401</statusValue>
<statusString>Unauthorized</statusString>
</userCheck>
In the DVR the names are "Camera 01", "Camera 02" and so on, maybe thats something to check?
DVR with IP cameras
It give me a response but the .mp4 file is a 0 bytes file...
Cameras here are name like "Cámara IP1" "Cámara IP2" (yes in spanish and with the simbol "á" because I am from Ecuador).
Trying to download from camera 101
<?xml version="1.0" encoding="UTF-8" ?>
<CMSearchResult version="1.0" xmlns="urn:ISAPIlliance-org">
<searchID>{c85ab0c7-f380-0001-e33b-a030eeb671f0}</searchID>
<responseStatus>true</responseStatus>
<responseStatusStrg>OK</responseStatusStrg>
<numOfMatches>1</numOfMatches>
<matchList>
<searchMatchItem>
<sourceID>{00000000-0000-0000-0000-000000000000}</sourceID>
<trackID>101</trackID>
<timeSpan>
<startTime>2020-01-23T10:00:00Z</startTime>
<endTime>2020-01-23T10:10:00Z</endTime>
</timeSpan>
<mediaSegmentDescriptor>
<contentType>video</contentType>
<codecType>H.264-BP</codecType>
<playbackURI>rtsp://xxx.xxx.xxx.xxx/Streaming/tracks/101/?starttime=20200123T100000Z&endtime=20200123T101000Z&name=02000003397000000&size=1064366528</playbackURI>
</mediaSegmentDescriptor>
<metadataMatches>
<metadataDescriptor>recordType.meta.hikvision.com/timing</metadataDescriptor>
</metadataMatches>
</searchMatchItem>
</matchList>
</CMSearchResult>
This is actually pretty unusul i suppose. Especially knowing that i also test datetime.now()-timedelta(days=1) to ensure at leat all the video is save. check also time is 10:00AM-10:10AM in both (today and todays-1).
thanks!
from hikload.
Dear friends,
I am struggling to download video from my hikvision camera ( model no : DS-2CD5A26G0-IZS ).
I have kept the camera on continuous recording mode and the video is being stored in the sd card.
Have tried multiple libraries from git but no success.
Was trying your library. I ran the main.py after changing the config file but got the same error ( unauthorized request). Please help me with the same.
My objective is to download the video by giving it start time and end time.
from hikload.
Can somebody verify if digest is the default authentication method for the NVR? This problem may occur because the auth method must be set to digest/basic (because this library does not yet support digest authentication). I will try to add it in the future.
from hikload.
Sure..
Already trying with that..
Thank you :)
from hikload.
Can somebody verify if digest is the default authentication method for the NVR? This problem may occur because the auth method must be set to digest/basic (because this library does not yet support digest authentication). I will try to add it in the future.
Yep it is the default as it shows the same in the configuration parameters..
Will try after changing it to digest/basic.
from hikload.
Related Issues (20)
- Script error on OS X
- Script for Hikvision cameras with SD card HOT 55
- Script for Hikvision cameras with SD card - download .jpeg timed captures? HOT 11
- Supported Models of hikvision NVR for API HOT 1
- Error when downloading single file HOT 2
- Use TQDM loading bar
- Invalid Operation HOT 15
- TypeError: search_for_recordings() missing 1 required positional argument: 'args' HOT 7
- speed download video HOT 4
- how shell?
- Concatenating videos from one camera HOT 1
- module 'argparse' has no attribute 'BooleanOptionalAction' HOT 3
- Videos not downloading, while being streamed on the Hikconnect app. HOT 1
- Package is incompatible with older versions of Python (<3.9 at least), and doesn't declare such in its metadata HOT 1
- Downloaded video is incomplete if download is started shortly after recording ends
- cant run in windows and docker
- Download video skipping frames HOT 4
- Download videos for specific periods of time HOT 3
- Download recorded files Error HOT 7
- TypeError: string indices must be integers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hikload.