tchellomello / python-amcrest

A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.
GNU General Public License v2.0
216 stars 76 forks source link

Problem with audio_stream_capture #87

Open rt-outofservice opened 6 years ago

rt-outofservice commented 6 years ago

Hi,

Probably, I'm doing something wrong but in my case method audio_stream_capture never returns. I call it like this:

camera.audio_send_stream(httptype="singlepart", path_file=<path_to_file>, channel=1, encode="AAC")
<... other_logic ...>

My camera plays the sound successfully (length of the file is ~3 sec) but the method never returns and "<... other_logic ...>" below never executes. I also tried to play with httptype=multipart but in this case, I hear no sound from the camera.

I also tried pure Amcrest REST API and basically have the same result. HTTP request takes too long (> 30 secs for 3 sec audio file), I hear sound but never get HTTP-response since it just hits a timeout.

So the question is, what is the proper way to send audio to a camera? :)

dougsland commented 6 years ago

@tischenko Looks like it's a know issue for us :( We might be facing some issues in firmware. However, what's the current firmware and camera that you are using?

Some discussion already happened here: https://github.com/tchellomello/python-amcrest/issues/75

rt-outofservice commented 6 years ago

I think I'm on the latest firmware for IP2M-841 - 2.420.AC00.10.R 1/6/2016. Did you try to reach out to Amcrest support team regarding this issue?

dougsland commented 6 years ago

@tischenko regarding this audio no. Please let us know if you are going to open a ticket with them.

rt-outofservice commented 6 years ago

I've sent an email to support@amcrest.com regarding the problem. Will keep you updated.

rt-outofservice commented 6 years ago

Quick update on this. After chatting with the support team and providing all the details about the problem, they have passed the problem to the development department. No estimates or further feedback was provided but my support ticket is still opened.

BongoEADGC6 commented 6 years ago

@tischenko Any update on this ticket? I'm having a similar problem using audio_send_stream

tchellomello commented 6 years ago

@tischenko any updates?

rt-outofservice commented 6 years ago

The ticket is still pending. No updates.

tchellomello commented 6 years ago

Thanks for your reply @tischenko. I have one open for quite a bit too and I'm still waiting.