I use AXIS P1346 Network Camera
By connecting their IP-CAM in ZM with RTSP, I get the error:
Code: Select all
2011-11-25 02:17:37.077766 zmc_m1 4689 ERR Error while decoding frame 0 zm_remote_camera_rtsp.cpp 224
2011-11-25 02:17:37.030893 zmc_m1 4689 ERR 256: 41 9b c0 1c 02 3b a4 ac e5 24 95 be 5e ab a3 f2 a3 75 e4 3b d2 c1 0f 5e 82 2e ae 97 13 37 27 7a b2 45 d3 8b e4 df 11 c9 7f a2 f4 4f 9a fc 66 f6 21 61 6e 16 72 f0 22 d9 da 8e 7f 34 a3 cb 8d 0d 73 e1 eb 51 57 7d ee 8e 16 d1 6b af 5e 7a e5 d7 d2 36 ab f zm_remote_camera_rtsp.cpp 225
2011-11-25 02:17:37.030503 zmc_m1 4689 ERR Error while decoding frame 0 zm_remote_camera_rtsp.cpp 224
2011-11-25 02:17:36.977759 zmc_m1 4689 ERR 256: 41 9b a0 1a 02 3b c4 4b df aa 91 17 d3 04 3d 65 f7 df a1 7f 5e be 6b ff 09 78 ea dd e1 ee 6d f2 62 7a 57 6e b9 37 fc 97 bd a4 23 ae 4d f0 43 d5 91 6c c9 c2 dd 96 13 02 c9 e2 d0 c7 54 ff 93 97 d4 4f 2f af 97 ac 46 ab 82 4a f7 ec 9d 93 aa bf 64 57 f9 6 zm_remote_camera_rtsp.cpp 225
2011-11-25 02:17:36.977404 zmc_m1 4689 ERR Error while decoding frame 0 zm_remote_camera_rtsp.cpp 224
2011-11-25 02:17:36.929305 zmc_m1 4689 ERR 256: 41 9b 80 18 02 39 39 2f c9 7a 95 97 df 22 17 dd fb ae 5f 77 94 b7 e2 e2 30 85 bf 3c bd f7 f4 4b bf ef dd 48 58 73 9b ac 31 4a 13 cc 4f 54 d8 c6 59 b8 9f 5a eb ad 4b c9 d7 e5 f3 a8 09 f7 ae 5c f2 f2 f5 a5 b1 1f 2f 5a dc bd f5 ea f6 f3 70 b7 aa f5 4f f zm_remote_camera_rtsp.cpp 225
ZoneMinder configure:
Code: Select all
./configure --with-webdir=/var/www/zm --with-cgidir=/usr/lib/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass ZM_SSL_LIB=openssl --enable-debug=no --with-webgroup=www-data --with-webuser=www-data --enable-mmap=yes --with-ffmpeg=/usr/include/ CPPFLAGS="-D__STDC_CONSTANT_MACROS ${CPPFLAGS}"
Code: Select all
ffmpeg version N-35147-geb511ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 25 2011 01:47:35 with gcc 4.6.1
configuration: --enable-gpl --enable-shared --enable-pthreads --enable-libx264 --enable-libfaac --enable-nonfree --enable-x11grab --enable-version3
libavutil 51. 28. 0 / 51. 28. 0
libavcodec 53. 37. 0 / 53. 37. 0
libavformat 53. 21. 0 / 53. 21. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 49. 0 / 2. 49. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Code: Select all
root@ubuntuserver:/home/webmaster# ffmpeg -i rtsp://root:123456@12.12.12.11/axis-media/media.3gp zzz.mpg
ffmpeg version N-35147-geb511ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 25 2011 01:47:35 with gcc 4.6.1
configuration: --enable-gpl --enable-shared --enable-pthreads --enable-libx264 --enable-libfaac --enable-nonfree --enable-x11grab --enable-version3
libavutil 51. 28. 0 / 51. 28. 0
libavcodec 53. 37. 0 / 53. 37. 0
libavformat 53. 21. 0 / 53. 21. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 49. 0 / 2. 49. 0
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[rtsp @ 0x1682760] UDP timeout, retrying with TCP
[rtsp @ 0x1682760] Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 41.25 (165/4)
Input #0, rtsp, from 'rtsp://root:123456@12.12.12.11/axis-media/media.3gp':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.332689, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuvj420p, 640x480 [SAR 1:1 DAR 4:3], 41.25 tbr, 90k tbn, 180k tbc
Incompatible pixel format 'yuvj420p' for codec 'mpeg1video', auto-selecting format 'yuv420p'
[buffer @ 0x168ab80] w:640 h:480 pixfmt:yuvj420p tb:1/1000000 sar:1/1 sws_param:
[buffersink @ 0x1680f00] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'
[scale @ 0x1681620] w:640 h:480 fmt:yuvj420p -> w:640 h:480 fmt:yuv420p flags:0x4
[mpeg @ 0x16abda0] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'zzz.mpg':
Metadata:
title : Media Presentation
encoder : Lavf53.21.0
Stream #0:0: Video: mpeg1video, yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 50 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mpeg1video)
Press [q] to stop, [?] for help
frame= 686 fps= 54 q=31.0 Lsize= 946kB time=00:00:13.70 bitrate= 565.7kbits/s dup=401 drop=0
video:940kB audio:0kB global headers:0kB muxing overhead 0.678044%
Received signal 2: terminating.




In what may be the problem?