Git Product home page Git Product logo

Comments (15)

Tedyst avatar Tedyst commented on July 24, 2024

Can you see if ISAPI is enabled in the DVR settings? If they are enabled, can you please tell me the DVR model and the firmware version that it is running? Thanks.

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

Model: Internec (almost the same as hikvision)
ISAPI is enabled.

Model: i7-N39832UHV
Firmware: V3.4.92 build 170323
Code Version: V5.0 build 170228

iVMS 4200 works fine with that DVR.

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

I added a workaround in the master branch. After you follow the install procedure, if you add --cameras=101 in the arguments, does the issue persist?

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

After upgrade:

Traceback (most recent call last):
File "/usr/local/bin/hikload", line 33, in
sys.exit(load_entry_point('hikload==1.0.2', 'console_scripts', 'hikload')())
File "/usr/local/bin/hikload", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/main.py", line 2, in
from .ui import main as ui_main
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/ui.py", line 1, in
from PyQt5 import QtWidgets, uic, QtGui
ImportError: libQt5Widgets.so.5: cannot open shared object file: No such file or directory

How to install hikload without Qt5?

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

Added a check to see if Qt5 is not installed that disables the GUI. Should work now.

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

Disabling GUI since PyQt5 is not installed
Traceback (most recent call last):
File "/usr/local/bin/hikload", line 33, in
sys.exit(load_entry_point('hikload==1.0.2', 'console_scripts', 'hikload')())
File "/usr/local/bin/hikload", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 790, in exec_module
File "", line 228, in _call_with_frames_removed
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/main.py", line 2, in
from .ui import main as ui_main
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/ui.py", line 17, in
class downloadThread(threading.Thread):
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/ui.py", line 18, in downloadThread
def init(self, window: QtWidgets.QMainWindow, server: HikvisionServer, args):
NameError: name 'QtWidgets' is not defined

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

Now the ImportError and the NameError should be caught and dealt with. Hopefully this should work.

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

Traceback (most recent call last):
File "/usr/local/bin/hikload", line 33, in
sys.exit(load_entry_point('hikload==1.0.2', 'console_scripts', 'hikload')())
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/main.py", line 27, in main
run(args)
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/download.py", line 336, in run
downloadQueue = search_for_recordings(server, args)
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/download.py", line 173, in search_for_recordings
channelList = server.Streaming.getChannels()
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/hikvisionapi/_Streaming.py", line 19, in getChannels
return hikvisionapi.getXML(self.parent, "Streaming/channels")
File "/usr/local/lib/python3.9/dist-packages/hikload-1.0.2-py3.9.egg/hikload/hikvisionapi/utils.py", line 40, in getXML
raise hikvisionapi.HikvisionException(
hikload.hikvisionapi.classes.HikvisionException: Invalid Operation

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

Did you add --cameras 101 to the arguments?

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

hikload --server 192.168.20.10 --user admin --password 'password' --cameras=101
0%| | 0/37 [00:00<?, ?it/s]

And nothing more is happening.

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

Maybe the cameras don't fully implement the ISAPI specification. Maybe with --ffmpeg it will work?

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

ERROR:root:Could not download 20220210000000-101.mkv. Try to remove --fmpeg.
ERROR:root:Could not download 20220210002926-101.mkv. Try to remove --fmpeg.

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

Do you have ffmpeg installed? If yes, I improved logging for the case where --ffmpeg is used to help debug why it isn't working for you.

from hikload.

dominiaz avatar dominiaz commented on July 24, 2024

ffmpeg is already the newest version (7:4.3.3-0+deb11u1).

ERROR:root:Could not download 20220211000000-101.mkv. Try to remove --fmpeg.
ERROR:root:ffmpeg error (see stderr output for detail)
ERROR:root:Could not download 20220211013950-101.mkv. Try to remove --fmpeg.
ERROR:root:ffmpeg error (see stderr output for detail)
ERROR:root:Could not download 20220211043006-101.mkv. Try to remove --fmpeg.
ERROR:root:ffmpeg error (see stderr output for detail)
ERROR:root:Could not download 20220211071834-101.mkv. Try to remove --fmpeg.
ERROR:root:ffmpeg error (see stderr output for detail)
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 4/4 [00:01<00:00, 3.41it/s]

from hikload.

Tedyst avatar Tedyst commented on July 24, 2024

Can you please add --debug to the arguments after you pull the latest commit and show me the output? Thanks.

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.