Git Product home page Git Product logo

Comments (11)

Tedyst avatar Tedyst commented on July 4, 2024

If I understand correctly, .jpeg timed captures means to get some frames from each stream and store them as .jpeg?

from hikload.

mrmaximas avatar mrmaximas commented on July 4, 2024

no. hikvision cameras can make pictures, by event or timed captures.
this pictures are stored on sd or nvr/dvr/external hdd

from hikload.

Tedyst avatar Tedyst commented on July 4, 2024

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.
Screenshot_20210921_111309

from hikload.

mrmaximas avatar mrmaximas commented on July 4, 2024

like this for example
https://github.com/cfryanr/hikvision-download-assistant

from hikload.

Tedyst avatar Tedyst commented on July 4, 2024

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.

mrmaximas avatar mrmaximas commented on July 4, 2024

[root - main() ] Found channels []

from hikload.

Tedyst avatar Tedyst commented on July 4, 2024

And the channelList when using --debug ?

from hikload.

mrmaximas avatar mrmaximas commented on July 4, 2024

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.

Tedyst avatar Tedyst commented on July 4, 2024

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.

mrmaximas avatar mrmaximas commented on July 4, 2024

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.

Tedyst avatar Tedyst commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.