I am trying to make ZoneMinder to work with my H264 IP camera FI9805W. ZoneMinder used to work OK with ffmpeg package, but when it was replaced by libav-tools, I cannot make it working.
First of all I have tested that I am able to capture the video from the camera using the command-line:
Code: Select all
$ avconv -i rtsp://user:password@ipcam:80/videoMain -an -c:v copy stream.mp4
avconv version 11.4-6:11.4-1~deb8u1, Copyright (c) 2000-2014 the Libav developers
built on Jun 4 2015 19:43:21 with gcc 4.9.2 (Debian 4.9.2-10)
[h264 @ 0x885a860] Missing reference picture
[h264 @ 0x885a860] decode_slice_header error
[h264 @ 0x885a860] concealing 920 DC, 920 AC, 920 MV errors
[rtsp @ 0x88581e0] Non-increasing DTS in stream 1: packet 14 with DTS 6630, packet 15 with DTS 5146 [pcm_mulaw @ 0x885b4e0] RTP: missed 41 packets
[rtsp @ 0x88581e0] max_analyze_duration 5000000 reached
[rtsp @ 0x88581e0] Estimating duration from bitrate, this may be inaccurate
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://viewer:B9kEmWKeSHTY@ipcam-outdoor:80/videoSub':
Metadata:
title : IP Camera Video
comment : videoSub
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264 (Baseline), yuv420p, 640x360, 3.33 fps, 90k tbn
Stream #0.1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s
Output #0, mp4, to 'stream.mp4':
Metadata:
title : IP Camera Video
comment : videoSub
encoder : Lavf56.1.0
Stream #0.0: Video: libx264, yuv420p, 640x360, q=2-31, 90k tbn, 90k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press ctrl-c to stop encoding
[NULL @ 0x885b4e0] RTP: missed 101 packets
[NULL @ 0x885a860] RTP: missed 41 packets
frame= 19 fps= 1 q=-1.0 Lsize= 114kB time=20.08 bitrate= 46.4kbits/s
Code: Select all
07/13/15 01:41:39.947224 zmc_m3[11189].INF-zmc.cpp/212 [Starting Capture]
07/13/15 01:41:39.987600 zmc_m3[11189].INF-zm_ffmpeg_camera.cpp/98 [Priming capture from rtsp://user:password@ipcam:80/videoMain]
07/13/15 01:41:40.031775 zmc_m3[11189].DB2-zm_ffmpeg_camera.cpp/212 [OpenFfmpeg called.]
07/13/15 01:41:40.031843 zmc_m3[11189].DB2-zm_ffmpeg_camera.cpp/234 [Number of Options: 2]
07/13/15 01:41:40.031935 zmc_m3[11189].DB2-zm_ffmpeg_camera.cpp/242 [set option 1 'rtsp_transport' to 'http']
07/13/15 01:41:40.031972 zmc_m3[11189].DB1-zm_ffmpeg_camera.cpp/251 [Calling avformat_open_input]
07/13/15 01:41:40.037494 zmc_m3[11189].ERR-zm_ffmpeg_camera.cpp/262 [Unable to open input rtsp://user:password@ipcam:80/videoMain due to: Broken pipe.
How the problem can be fixed or further investigated? Thanks.
I am using ZoneMinder 1.28.0-0.2 compiled from sources under Debian jessie (8.1).