Work around for Dahua's snapshot in BMP (file converter)

milkisbad

Pulling my weight
Joined
Mar 11, 2014
Messages
178
Reaction score
142
...............
 
Last edited:

nayr

IPCT Contributor
Joined
Jul 16, 2014
Messages
9,329
Reaction score
5,325
Location
Denver, CO
Every one of my Dahua cameras gives me JPEGs not BMPs.

Code:
$ wget [URL]http://192.168.42.21:9989/onvif/media_service/snapshot[/URL]
--2014-10-16 13:02:40--  [URL]http://192.168.42.21:9989/onvif/media_service/snapshot[/URL]
Connecting to 192.168.42.21:9989... connected.
HTTP request sent, awaiting response... 200 OK
Length: 303212 (296K) [image/jpeg]
Saving to: 'snapshot'


100%[=====================================================================================================================================================================>] 303,212     1.10MB/s   in 0.3s   


2014-10-16 13:02:41 (1.10 MB/s) - 'snapshot' saved [303212/303212]


nayr@dispatch:~$ file snapshot 
snapshot: JPEG image data, JFIF standard 1.01
 
Top