Comments (11)
If I understand correctly, .jpeg timed captures
means to get some frames from each stream and store them as .jpeg?
from hikload.
no. hikvision cameras can make pictures, by event or timed captures.
this pictures are stored on sd or nvr/dvr/external hdd
from hikload.
I don't really know how to do this, since I can't find that functionality in my own DVR. Also in the specification I can not find any mention on how this is stored.
from hikload.
like this for example
https://github.com/cfryanr/hikvision-download-assistant
from hikload.
I tried reimplementing that repo, and I added a --photos
flag, but I don't think it would work. If it dosen't, could you please send the line from the script startup that starts with [root - main() ] ChannelList:
(when using --debug
). It should contain the list of all channels, maybe I could use it to trace how exactly are the photos implemented. (The ISAPI document that I have does not specify in any way that a channel ending in 3 exists)
from hikload.
[root - main() ] Found channels []
from hikload.
And the channelList when using --debug ?
from hikload.
for example i found this url using hikvision-download-assistant
, {
"mediaType" : "PHOTO",
"startTime" : 1632470656000,
"endTime" : 1632470656000,
"eventType" : "TIMING",
"curlCommand" : "curl -f --anyauth --user admin:pass 'http://11.11.11.11/ISAPI/Streaming/tracks/103/?starttime=20210924T080416Z&endtime=20210924T080416Z&name=ch01_00000000013022600&size=983775' --output 2021-09-24T11-04-16.jpeg"
} ]
from hikload.
I looked at that repo, and it only looks for the 103 channel, without it being advertised by the camera. For now, I forced looking at that stream for every channel, maybe it will work.
from hikload.
I looked at that repo, and it only looks for the 103 channel, without it being advertised by the camera. For now, I forced looking at that stream for every channel, maybe it will work.
it's works!
[root - photo_download_from_channel() ] Started downloading 20210923005215.jpeg
[root - photo_download_from_channel() ] Files to download: (url: 'http://11.11.11.11/ISAPI/Streaming/tracks/103/?starttime=20210923T005215Z&endtime=20210923T005215Z&name=ch01_00000000010029200&size=544970', name: '20210923005215.jpeg')
[hikvisionapi.utils - getXML() ] Data sent: http://111.11.11.11/ISAPI/Streaming/tracks/103/?starttime=20210923T005215Z&endtime=20210923T005215Z&name=ch01_00000000010029200&size=544970
[urllib3.connectionpool - _new_conn() ] Starting new HTTP connection (1): 11.11.11.11:80
[urllib3.connectionpool - _make_request() ] http://11.11.11.11:80 "GET /ISAPI/ContentMgmt/download HTTP/1.1" 401 178
[urllib3.connectionpool - _make_request() ] http://11.11.11.11:80 "GET /ISAPI/ContentMgmt/download HTTP/1.1" 200 544970
[root - photo_download_from_channel() ] Finished downloading 20210923005215.jpeg
from hikload.
I guess we can close the issue now, since you said that it works. If there are any more problems, be sure to create another issue or reply to this one.
from hikload.
Related Issues (20)
- Script error on OS X
- Script for Hikvision cameras with SD card HOT 55
- 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
- error while installing hikLoad using pip install hikload.
- requests.exceptions.InvalidURL: Failed to parse
- Starttime and endtime not used
- 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.