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

speed download video #22

Open
Robert-Petrosian opened this issue Jul 15, 2022 · 4 comments
Open

speed download video #22

Robert-Petrosian opened this issue Jul 15, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Robert-Petrosian
Copy link

good afternoon! Can you please tell me, the video from the camera using the iwms 4200 program is downloaded at an average speed of 50 megabits, but using isapi, the speed does not rise above 2.4 kilobytes.

@Robert-Petrosian Robert-Petrosian added the bug Something isn't working label Jul 15, 2022
@Tedyst
Copy link
Owner

Tedyst commented Jul 16, 2022

Hello! I recently found a problem regarding the default video type that forced the app to transcode, resulting in a very slow download. Can you try updating the app and seeing if it works correctly now?

@Tedyst Tedyst self-assigned this Jul 16, 2022
@roberto96
Copy link

roberto96 commented Jul 18, 2022

I'm not using your application specifically, I'm using a few methods from your code, specifically downloading videos. I will be very grateful if you help me with my problem. I request video from the camera using xml
'xml = """<?xml version="1.0" encoding="utf-8"?> <CMSearchDescription> <searchID>C77384AD-66A0-0001-E7C2-1151F04F90B0</searchID> <trackIDList> <trackID>101</trackID> </trackIDList> <timeSpanList> <timeSpan> <startTime>2022-07-05T00:00:00Z</startTime> <endTime>2022-07-05T23:59:59Z</endTime> </timeSpan> </timeSpanList> <maxResults>40</maxResults> <searchResultPosition>0</searchResultPosition> <metadataList> <metadataDescriptor>//recordType.meta.std-cgi.com</metadataDescriptor> </metadataList> </CMSearchDescription>"""', link = 'http://admin:[email protected]/ISAPI/ContentMgmt/search/',
stream I download them using xml = '<?xml version='1.0'?> <downloadRequest> <playbackURI>{}</playbackURI> </downloadRequest>'
and link = 'requests.get("http://admin:[email protected]/ISAPI/ContentMgmt/download", data=xml, stream=True, timeout = 15'.
But unlike iwms, I have a very low download speed, even over a local network.
instead of {} I substitute my data via '.format'

@Tedyst
Copy link
Owner

Tedyst commented Jul 18, 2022

Maybe it has something to do with the stream=True? Have you tried using hikload using the commandline/GUI to see if the issue persists? Maybe this will help us see where is the problem.

@roberto96
Copy link

roberto96 commented Jul 19, 2022

i tried to use command line to boot with your program, same slow speed
hikload --server 192.168.1.64 --username admin --password psaaword --no-ffmpeg 2/4 [03:08<03:27, 103.69s/it]
Using my method, it is 132 seconds for a 256 megabyte file, which is also very long compared to iwms 4200.
when downloading from iwms 35 seconds, it takes 249 megabytes to download the file. Through your script, a 74 megabyte file downloaded for 103 seconds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants