Hi Folks
I am about to give up on this but before buying new cameras i thought id try here.
I want to replace the crap Annke software with zoneminder (running 1.34.16) i have managed to work out how the stream is outputted but zoneminder does not like it. Here is a packet trace and the error logged. I have tried VLC also but that does not read the stream, at this point i dont know if the format is propitiatory but the headers suggest not.
Jul 18 19:42:32 aloha zmc_m4[10577]: ERR [zmc_m4] [Unrecognised content type 'application/octet-stream']
Jul 18 19:42:32 aloha zmc_m4[10577]: ERR [zmc_m4] [Unable to get response, disconnecting]
Jul 18 19:42:32 aloha zmc_m4[10577]: INF [zmc_m4] [Return from Capture (-1), signal loss]
Jul 18 19:42:32 aloha zmc_m4[10577]: INF [zmc_m4] [Failed to capture image from monitor 4 Monitor-4 (1/1)]
So it seams to dislike the content type 'application/octet-stream' and that is seen in the response headers as the stream starts
GET /livestream/11?action=play&media=video_audio_data/track=video HTTP/1.0
User-Agent: ZoneMinder/1.34.16
Host: 192.168.1.240
Connection: Keep-Alive
Authorization: Basic YWRtaW46YWRtaW4=
HTTP/1.1 200 OK
Accept-Ranges: Bytes
Cache-Control: no-cache
Connection: close
Content-Type: application/octet-stream
Server: IE/10.0
Session: 214201060
Cseq: 1
m=video 96 H264/90000/1280/960
m=audio 8 G711/8000/2
Transport: RTP/AVP/TCP;unicast;hisiinterleaved=0-1;ssrc=cc472e4
$.....Mp.`@q...m.r......gd. .... .a.C...@....;P(..7........h.<........e.....e.....;h..0.........LesJ..0..GT.......... .4f{8.T.9.q;k......(Kl.."..Y...o.t...c..@`.....;.6..sqLh...6......B...m..V.p....Hp...../......ER2.5. .Tlg.APQ6O!@<+N.(...kA..#(-..h.dN..Lo.g.......(..6.e.#b.)_t.8..W...g.c........Q...i.%.....u8...(~.V.._...2f|_*....!...
.*Y.........z.w...c...B.n.y36e...........;.....QW+<....
V.4.....E...aV..f...p.s..="x.`.t.4..?...17m...@M.b.8U..\.'g|>.c.@|.)6.L'{....[7).|}.0..}...?...T.....xSpj.....4
..h+...}..M....?....R.3....J..d-G..
j.....V....I-{.....&........B...%P
?s..k.6...5.OWf.7.....Qw..$.X.a.p.....Ys.d>.k...;*..E.0..r>.X...vuU.@.|.....m......W...E..<...y[\.{..r.lY..kS......Q_o....u .OW.0!r......\... /..t.... ...\.k..".a.:CEf.M..%pD>.....]
..oA....{.p)$..tq.....5g..
...{fR!L.Q!.......=...M.O./b..
.....%..b.h.Z.&............1.......u....H-...z=.$.t...!.
q..? .......i.........T..qx-.Q...!sr..m.M1F..+.qSI.......e=...K<?my.dP.&.|k."U.K.!.$.)C..Q.N.F........C.......
.A..82.......
..#..E..8.g..q.(.zH....l.....5..v!U..P..z...a.3g.ya.wef..t.<`..\._d...s..YK|...gv...n-..s.v.........%..a...}:.. .v.......5...o..G.-.....K...i.1...yt.y..q......".v..w..*.5jJkc.v.&YYt......:n....;..3I..H\+G.,....h...q........kBZd4.....~.1...".W...>...f{.G.C...F...vl;.E.&.A...h6.%&...A<.3....{.*
.....EZ.{P8...T.4.D..j.9.2D..vC..*..;..K.`.?.L.{..0r..|.;.:5{.y.T.H.8.:Q.T4...(I@,.....M..y.l.E..Z....w.X..m(Cm.M.]..#.8.y....f1..@>...Wa....9~).....Q.....vw^... .f...U.......%...@3..t..9.T..bVhRr..}../.].......Q....n....RTH.R........5vF..5.%_|.....:..,o..n*.j:A[M...&..../ .....H......e..+6..r`..KF.ML.1.b_..._:_.3KW..\u..r&F.1..ax..5.E.e.c..PYXo.....a>.4.!S..S ..$.=..W*=.....9.X.W...o.1..K..6......b9...^.2(Zk...J.J
..~u.0...g..E.....3..rh.#...7$l. ,@..|.F.........b1I...L....#o..N..bT..-.5...|....6. -.........qm.`...Dpd.Vi.G.k.;.y..m.}...S..M2...D<Z..f9..X.H.k....u....T.).<..F.0....".-.x..@
annke i31v
Re: annke i31v
UPDATE
I managed to get zoneminder to see the capture.
I did a curl to the url and wrote it to a file, then pointed zoneminder at it and it could view the stream, so i just need a way of telling zoneminder to ignore the header hopefully.
curl "http://192.168.1.240/livestream/11?acti ... rack=video" -H "Authorization: Basic YWRtaW46YWRtaW4=" --output /tmp/cam1
i then configured ffmpeg to use /tmp/cam1 as the source.
BTW i have tried ffmpeg pointing at the url directly but i always get a 401 no matter how i configure the source.
Any thoughts
I managed to get zoneminder to see the capture.
I did a curl to the url and wrote it to a file, then pointed zoneminder at it and it could view the stream, so i just need a way of telling zoneminder to ignore the header hopefully.
curl "http://192.168.1.240/livestream/11?acti ... rack=video" -H "Authorization: Basic YWRtaW46YWRtaW4=" --output /tmp/cam1
i then configured ffmpeg to use /tmp/cam1 as the source.
BTW i have tried ffmpeg pointing at the url directly but i always get a 401 no matter how i configure the source.
Any thoughts
SOLVED: annke i31v
I managed to get this working so posting for anyone else that has this model of camera, in short ffmpeg with http tunnel got it working but so far without a password on the admin account on the camera
Source: FFmpeg
source path: http://admin:admin@192.168.1.241/livest ... rack=video (but only got working without a password set on the camera)
Method: HTTP Tunnel
Source: FFmpeg
source path: http://admin:admin@192.168.1.241/livest ... rack=video (but only got working without a password set on the camera)
Method: HTTP Tunnel
Re: annke i31v
Hello,
With ffmpeg you could also stream the audio?
Thanks a lot
Stefano
With ffmpeg you could also stream the audio?
Thanks a lot
Stefano