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
213 stars 76 forks source link

Corrupted jpeg snapshot #201

Open carefulcomputer opened 2 years ago

carefulcomputer commented 2 years ago

I have Amcrest AD410 doorbell. I am trying to get a snapshot using following code

snapshot2 = camera.snapshot().read()

or

snapshot = camera.snapshot().data and save resulting data to a file. Then when I check the file with jpeginfo, it gives following message..

Corrupt JPEG data: 608 extraneous bytes before marker 0xfe 720 x 576 24bit JFIF N 27251

any idea what I could be doing wrong.