LINUX.ORG.RU

Сообщения dimujin

 

zoneminder - подключение китайской камеры IPCAM

Форум — Multimedia

Здравствуйте.
Столкнулся с проблемой подключения китайской камеры IPCAM к ZM.

Перепробовал все варианты, подошел только этот: protocol: rtsp
Remote Method: rtp/unicast
Remote Host Name: admin:passwd@10.2.2.12
Remote Host Port: 554
Remote Host Path: /11
Лог при таких настройках усыпан ошибками, просмотр не работает:

2015-11-04 19:30:03.459370	zmdc	1043	ERR	'zmc -m 1' exited abnormally, exit status 255	zmdc.pl	
2015-11-04 19:30:03.428792	zmc_m1	2632	ERR	Failed to capture image from monitor 1 (0/1)	zmc.cpp	263
2015-11-04 19:30:00.472113	zmc_m1	2636	ERR	RTCP timed out	zm_rtp_ctrl.cpp	302
2015-11-04 19:30:00.426435	zmc_m1	2632	ERR	256: 7c 85 b8 00 00 0a fa 50 9f 7a a0 2f 3b ff 08 ce af a3 e4 fb 0d 6f dc ca 87 6e 0d a1 bb 08 05 51 c8 4a c3 f2 1a 5c fd 64 fc f6 83 46 34 f8 13 4f 2c 49 1b fb 19 85 56 60 44 4d 63 67 e7 31 8b 89 8e 60 7c 5f 7f 8e 81 54 b4 35 58 87 82 8a 86 eb b7 95 d8 b	zm_remote_camera_rtsp.cpp	225
2015-11-04 19:30:00.425185	zmc_m1	2632	ERR	Error while decoding frame 0	zm_remote_camera_rtsp.cpp	224
2015-11-04 19:30:00.366138	zmc_m1	2632	ERR	111: 61 e2 62 4f 01 b2 e2 e5 c5 90 aa cd 29 d6 c1 a7 80 1b f8 f2 e5 92 4a d2 15 84 f6 24 5d cf 3e d6 18 01 79 c8 5b e9 b3 0c 82 41 e1 3e 1d 8d 90 e0 00 0a b2 9e cd 9d 56 70 f0 6f 57 e8 45 05 84 83 25 95 5d 12 e6 10 71 92 26 23 c9 be c2 d1 72 10 b8 05 07 7	zm_remote_camera_rtsp.cpp	225
2015-11-04 19:30:00.364932	zmc_m1	2632	ERR	Error while decoding frame 0	zm_remote_camera_rtsp.cpp	224
2015-11-04 19:30:00.336957	zmc_m1	2632	ERR	100: 61 e2 42 4f 12 58 11 86 ca 63 f5 94 14 fb 20 9a ad d6 1c 79 46 96 62 70 ac 29 e7 02 68 6a f4 79 1c 18 b6 bb e8 21 1f 2c 63 c1 18 db 46 8a 40 00 12 23 7e 61 a0 1d 07 ce e2 d9 a3 70 b9 1c e3 e0 c1 4e cf a2 43 11 31 2c 9f 80 b3 0f 5a 52 55 92 9a ad d2 8	zm_remote_camera_rtsp.cpp	225
2015-11-04 19:30:00.335712	zmc_m1	2632	ERR	Error while decoding frame 0	zm_remote_camera_rtsp.cpp	224

При выборе Remote Method: rtp/RTSP или других: Unexpected response code 503, text is 'Service Unavailable'

В строке вроде работает, но как перенести это на ВЕБморду, ума не приложу.

zoneminder# ffmpeg -loglevel debug -i rtsp://10.2.2.12:554/11/admin:passwd/main /tmp/mov1.mpg
ffmpeg version 0.8.17-6:0.8.17-1+rpi1, Copyright (c) 2000-2014 the Libav developers
  built on Mar 25 2015 00:39:58 with gcc 4.6.3
  configuration: --arch=arm --enable-pthreads --enable-runtime-cpudetect --extra-version='6:0.8.17-1+rpi1' --libdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-swscale --enable-libcdio --enable-x11grab --enable-libx264 --enable-libxvid --shlibdir=/usr/lib/arm-linux-gnueabihf --enable-shared --disable-static
  postproc    configuration: 
  libavutil    51. 22. 3 / 51. 22. 3
  libavcodec   53. 35. 0 / 53. 35. 0
  libavformat  53. 21. 1 / 53. 21. 1
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 15. 0 /  2. 15. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  52.  0. 0 / 52.  0.100
The ffmpeg program is only provided for script compatibility and will be removed
in a future release. It has been deprecated in the Libav project to allow for
incompatible command line syntax improvements in its replacement called avconv
(see Changelog for details). Please use avconv instead.
[rtsp @ 0x1ed7780] SDP:
v=0
o=StreamingServer 3331435948 1116907222000 IN IP4 10.2.2.12
s=\11/admin:Fhb602gjdf/main
c=IN IP4 0.0.0.0
b=AS:4100
t=0 0
a=control:*
m=video 0 RTP/AVP 96
b=AS:4000
a=framerate:20
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=420029; sprop-parameter-sets=Z00AH5WoFAFuQA==,aO48gA==
a=framesize:96 1280-720
m=audio 0 RTP/AVP 8
a=control:trackID=1
a=rtpmap:8 PCMA/8000

[rtsp @ 0x1ed7780] video codec set to: h264
[NULL @ 0x1edb4a0] RTP Packetization Mode: 1
[NULL @ 0x1edb4a0] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[NULL @ 0x1edb4a0] Extradata set to 0x1edb960 (size: 20)!audio codec set to: pcm_alaw
[rtsp @ 0x1ed7780] audio samplerate set to: 8000
[rtsp @ 0x1ed7780] audio channels set to: 1
[rtsp @ 0x1ed7780] hello state=0
[pcm_alaw @ 0x1edd760] err{or,}_recognition separate: 1; 1
[pcm_alaw @ 0x1edd760] err{or,}_recognition combined: 1; 1
[h264 @ 0x1edb4a0] err{or,}_recognition separate: 1; 1
[h264 @ 0x1edb4a0] err{or,}_recognition combined: 1; 1
[rtsp @ 0x1ed7780] All info found
[rtsp @ 0x1ed7780] Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, rtsp, from 'rtsp://10.2.2.12:554/11/admin:Fhb602gjdf/main':
  Metadata:
    title           : \11/admin:Fhb602gjdf/main
  Duration: N/A, start: -8685.372444, bitrate: N/A
    Stream #0.0, 22, 1/90000: Video: h264 (Main), yuv420p, 1280x720, 1/180000, 90k tbr, 90k tbn, 180k tbc
    Stream #0.1, 29, 1/8000: Audio: pcm_alaw, 8000 Hz, 1 channels, s16, 64 kb/s
[buffer @ 0x1f6ff00] w:1280 h:720 pixfmt:yuv420p
[mp2 @ 0x1ed6d00] Requested sampling rate unsupported using closest supported (16000)
[mpeg1video @ 0x1ed9da0] err{or,}_recognition separate: 1; 1
[mpeg1video @ 0x1ed9da0] err{or,}_recognition combined: 1; 1
[mp2 @ 0x1ed6d00] err{or,}_recognition separate: 1; 1
[mp2 @ 0x1ed6d00] err{or,}_recognition combined: 1; 1
[h264 @ 0x1edb4a0] err{or,}_recognition separate: 1; 1
[h264 @ 0x1edb4a0] err{or,}_recognition combined: 1; 1
[pcm_alaw @ 0x1edd760] err{or,}_recognition separate: 1; 1
[pcm_alaw @ 0x1edd760] err{or,}_recognition combined: 1; 1
[mpeg @ 0x1ee4100] VBV buffer size not set, muxing may fail
Output #0, mpeg, to '/tmp/mov1.mpg':
  Metadata:
    title           : \11/admin:Fhb602gjdf/main
    encoder         : Lavf53.21.1
    Stream #0.0, 0, 1/90000: Video: mpeg1video, yuv420p, 1280x720, 1/60, q=2-31, 200 kb/s, 90k tbn, 60 tbc
    Stream #0.1, 0, 1/90000: Audio: mp2, 16000 Hz, 1 channels, s16, 128 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press ctrl-c to stop encoding
[h264 @ 0x1edb4a0] Frame num gap 14 1224kB time=1.15 bitrate=1592.9kbits/s dup=84 drop=0    
[h264 @ 0x1edb4a0] no picture
[h264 @ 0x1edb4a0] error while decoding MB 36 2, bytestream (-16)
[h264 @ 0x1edb4a0] concealing 3453 DC, 3453 AC, 3453 MV errors
frame=  357 fps= 17 q=31.0 Lsize=     728kB time=1.22 bitrate=4872.4kbits/s dup=308 drop=0     
video:704kB audio:19kB global headers:0kB muxing overhead 0.655127%
Received signal 2: terminating.
zoneminder# ls -l /tmp/mov1.mpg
-rw-r--r-- 1 root root 745472 Nov  4 19:12 /tmp/mov1.mpg

 , ,

dimujin
()

RSS подписка на новые темы