Reading RTSP from Axis cameras via FFMPEG
Hi. I'm trying to read video from Axis camera via ffmpeg and ffplay. The use link goes like this: rtsp://192.168.253.201:554/mpeg4/media.amp The video starts fine, but then immediately breaks to parts. ffmpeg/ffplay start to throw the following errors: [mpeg4 @ 0x1a350400]concealing 661 DC, 661 AC, 661 MV errors [mpeg4 @ 0x1a350400]slice end not reached but screenspace end (44419 left 6CC8BD, score= -262) [mpeg4 @ 0x1a350400]concealing 690 DC, 690 AC, 690 MV errors [mpeg4 @ 0x1a350400]slice end not reached but screenspace end (12453 left 7E1653, score= -263) [mpeg4 @ 0x1a350400]concealing 690 DC, 690 AC, 690 MV errors [mpeg4 @ 0x1a350400]1. marker bit missing in 3. esc [mpeg4 @ 0x1a350400]Error at MB: 206 [mpeg4 @ 0x1a350400]concealing 539 DC, 539 AC, 539 MV errors [mpeg4 @ 0x1a350400]slice end not reached but screenspace end (11108 left 7091E5, score= -268) [mpeg4 @ 0x1a350400]concealing 690 DC, 690 AC, 690 MV errors [mpeg4 @ 0x1a350400]I cbpy damaged at 18 9 [mpeg4 @ 0x1a350400]Error at MB: 297 [mpeg4 @ 0x1a350400]concealing 451 DC, 451 AC, 451 MV errors [mpeg4 @ 0x1a350400]slice end not reached but screenspace end (11107 left 6CF4B6, score= -275) [mpeg4 @ 0x1a350400]concealing 690 DC, 690 AC, 690 MV errors [mpeg4 @ 0x1a350400]slice end not reached but screenspace end (11110 left 7C5C0C, score= -279) [mpeg4 @ 0x1a350400]concealing 690 DC, 690 AC, 690 MV errors VLC, when connecting to same link, works just fine. Any idea what happens? Thanks!
I'm having this same problem with two axis ip cameras and two panasonic ip cameras!! The video gets messed up with ghosting and things, especially in the lower half. The console spits out hundreds of errors each minute. To reproduce the error, go to: http://ffmpeg.zeranoe.com/builds/ and get the latest 32 bit static build for, (the one I have is 1929807). Then open a IP camera rtsp stream via ffplay. If you don't have one, I found one that's accessible online that you can access using: ffplay rtsp://195.200.199.8/mpeg4/media.amp A few years ago we used some older versions that didn't have any mpeg4 errors, but they had another problem that caused the video to timeout after 1 minute. So it seems like the timeout problem was fixed, but replaced by this mpeg4 issue. I don't know if it's the mpeg4 that's bad, or if it's the rtp parsing. It's not just ffplay either. I tried it with several example apps like the ffmpeg sdl tutorial here: http://dranger.com/ffmpeg/ and my own code - they all get the same mpeg4 errors. I've tried it on several different windows computers. I'm going to try it on Ubuntu tonight. BTW, the errors I'm getting look like: C:\ffmpeg\bin>ffplay rtsp://195.200.199.8/mpeg4/media.amp ffplay version git-N-30344-g5501afa, Copyright (c) 2003-2011 the FFmpeg develope rs built on May 27 2011 22:37:57 with gcc 4.5.3 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable- runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi g libavutil 51. 2. 2 / 51. 2. 2 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 11. 0 / 2. 11. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [rtsp @ 01E57B60] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://195.200.199.8/mpeg4/media.amp': Metadata: title : Media Presentation Duration: N/A, start: 0.030000, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 352x288 [PAR 12:11 DAR 4:3], 100 tbr, 90 k tbn, 100 tbc [mpeg4 @ 01E5BA40] ac-tex damaged at 16 4B vq= 17KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 108 [mpeg4 @ 01E5BA40] concealing 44 DC, 44 AC, 44 MV errors [mpeg4 @ 01E5BA40] 1. marker bit missing in 3. esc= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 61 [mpeg4 @ 01E5BA40] concealing 110 DC, 110 AC, 110 MV errors [mpeg4 @ 01E5BA40] concealing 49 DC, 49 AC, 49 MV errorsB f=0/0 [mpeg4 @ 01E5BA40] ac-tex damaged at 12 9 0KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 219 [mpeg4 @ 01E5BA40] concealing 44 DC, 44 AC, 44 MV errors [mpeg4 @ 01E5BA40] ac-tex damaged at 4 7 0KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 165 [mpeg4 @ 01E5BA40] concealing 66 DC, 66 AC, 66 MV errors [mpeg4 @ 01E5BA40] concealing 30 DC, 30 AC, 30 MV errorsB f=0/0 [mpeg4 @ 01E5BA40] ac-tex damaged at 5 5 0KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 120 [mpeg4 @ 01E5BA40] concealing 287 DC, 287 AC, 287 MV errors ........... ........... and billions more errors like that :-) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Reading-RTSP-from-Axis-cameras-via-... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (2)
-
Ph0t0n -
stas.oskin@gmail.com