[FFmpeg-trac] #2778(undetermined:new): Corrupt image when transcoding H264 stream to JPEG using IB-CAM2002
FFmpeg
trac at avcodec.org
Fri Jul 12 11:18:29 CEST 2013
#2778: Corrupt image when transcoding H264 stream to JPEG using IB-CAM2002
-------------------------------------+-------------------------------------
Reporter: imavra | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When using the options "-i rtsp://192.168.0.220:554/stream1/ -an -r 1 -s
1280x1024 -y video.jpg" to transcode and image from a camera sream (what
ZoneMinder does to record CCTV), the image ends up corrupt. When directly
copying the stream to a file, however, the video can be played back
normally with no sign of corruption. ffplay, however, core dumps when
attempting to play the stream. Attached is an example of the corrupt image
plus a raw stream.
How to reproduce:
{{{
functor at ichigo:~$ ./bin/ffmpeg -i rtsp://192.168.0.220:554/stream1/ -an -r
1 -s 1280x1024 -y video.jpg
ffmpeg version git-2013-07-09-c5a1b18 Copyright (c) 2000-2013 the FFmpeg
developers
built on Jul 11 2013 12:32:50 with gcc 4.7 (Ubuntu/Linaro
4.7.3-1ubuntu1)
configuration: --prefix=/home/functor/ffmpeg_build --extra-
cflags=-I/home/functor/ffmpeg_build/include --extra-
ldflags=-L/home/functor/ffmpeg_buil d/lib
--bindir=/home/functor/bin --extra-libs=-ldl --enable-gpl --enable-libass
--enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-li
btheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-
nonfree --enable-x11grab
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 11.101 / 55. 11.101
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
[h264 @ 0xb1f2360] RTP: missed 14 packets
[h264 @ 0xb1f2360] corrupted macroblock 40 51 (total_coeff=-1)
[h264 @ 0xb1f2360] error while decoding MB 40 51
[h264 @ 0xb1f2360] concealing 1049 DC, 1049 AC, 1049 MV errors in I frame
Input #0, rtsp, from 'rtsp://192.168.0.220:554/stream1/':
Metadata:
title : Test
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x1024, 90k tbr, 90k
tbn, 180k tbc
Output #0, image2, to 'video.jpg':
Metadata:
title : Test
encoder : Lavf55.11.101
Stream #0:0: Video: mjpeg, yuvj420p, 1280x1024, q=2-31, 200 kb/s, 90k
tbn, 1 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> mjpeg)
Press [q] to stop, [?] for help
[h264 @ 0xb3e4a40] corrupted macroblock 40 51 (total_coeff=-1)
[h264 @ 0xb3e4a40] error while decoding MB 40 51
[h264 @ 0xb3e4a40] concealing 1049 DC, 1049 AC, 1049 MV errors in I frame
}}}
{{{
functor at ichigo:~/bin$ ./ffplay rtsp://192.168.0.220:554/stream1/
ffplay version git-2013-07-09-c5a1b18 Copyright (c) 2003-2013 the FFmpeg
developers
built on Jul 11 2013 12:32:50 with gcc 4.7 (Ubuntu/Linaro
4.7.3-1ubuntu1)
configuration: --prefix=/home/functor/ffmpeg_build --extra-
cflags=-I/home/functor/ffmpeg_build/include --extra-
ldflags=-L/home/functor/ffmpeg_build/lib --bindir=/home/functor/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 11.101 / 55. 11.101
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, rtsp, from 'rtsp://192.168.0.220:554/stream1/':0B f=0/0
Metadata:
title : Test
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x1024, 90k tbr, 90k
tbn, 180k tbc
Segmentation fault (core dumped) 0KB vq= 67KB sq= 0B f=0/0
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2778>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list