[FFmpeg-trac] #3229(avcodec:open): ffplay shows bad images

FFmpeg trac at avcodec.org
Mon Dec 16 13:58:28 CET 2013


#3229: ffplay shows bad images
------------------------------------+-----------------------------------
             Reporter:  hxuanyu     |                    Owner:
                 Type:  defect      |                   Status:  open
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:  mjpeg       |               Blocked By:
             Blocking:              |  Reproduced by developer:  1
Analyzed by developer:  0           |
------------------------------------+-----------------------------------

Comment (by cehoyos):

 {{{
 $ ffmpeg -loglevel debug -i bad.avi
 ffmpeg version N-59134-g1c67ad9 Copyright (c) 2000-2013 the FFmpeg
 developers
   built on Dec 16 2013 02:32:20 with gcc 4.7 (SUSE Linux)
   configuration: --enable-gpl
   libavutil      52. 58.100 / 52. 58.100
   libavcodec     55. 45.101 / 55. 45.101
   libavformat    55. 22.100 / 55. 22.100
   libavdevice    55.  5.102 / 55.  5.102
   libavfilter     3. 92.100 /  3. 92.100
   libswscale      2.  5.101 /  2.  5.101
   libswresample   0. 17.104 /  0. 17.104
   libpostproc    52.  3.100 / 52.  3.100
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'debug'.
 Reading option '-i' ... matched as input file with argument 'bad.avi'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument debug.
 Successfully parsed a group of options.
 Parsing a group of options: input file bad.avi.
 Successfully parsed a group of options.
 Opening an input file: bad.avi.
 [avi @ 0x3731100] Format avi probed with size=2048 and score=100
 [avi @ 0x3731760] use odml:1
 st:1 removing common factor 4 from timebase
 [avi @ 0x3731100] Before avformat_find_stream_info() pos: 32390 bytes
 read:140776 seeks:6
 [avi @ 0x3731100] parser not found for codec pcm_s16le, packets or times
 may be invalid.
 [mjpeg @ 0x3731ba0] marker=d8 avail_size_in_buf=239529
 [mjpeg @ 0x3731ba0] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x3731ba0] marker=e0 avail_size_in_buf=239527
 [mjpeg @ 0x3731ba0] polarity 1
 [mjpeg @ 0x3731ba0] marker parser used 15 bytes (120 bits)
 [mjpeg @ 0x3731ba0] marker=dd avail_size_in_buf=239509
 [mjpeg @ 0x3731ba0] restart interval: 0
 [mjpeg @ 0x3731ba0] marker parser used 4 bytes (32 bits)
 [mjpeg @ 0x3731ba0] marker=db avail_size_in_buf=239503
 [mjpeg @ 0x3731ba0] index=0
 [mjpeg @ 0x3731ba0] qscale[0]: 0
 [mjpeg @ 0x3731ba0] index=1
 [mjpeg @ 0x3731ba0] qscale[1]: 0
 [mjpeg @ 0x3731ba0] marker parser used 132 bytes (1056 bits)
 [mjpeg @ 0x3731ba0] marker=c0 avail_size_in_buf=239369
 [mjpeg @ 0x3731ba0] sof0: picture: 468x156
 [mjpeg @ 0x3731ba0] component 0 2:1 id: 0 quant:0
 [mjpeg @ 0x3731ba0] component 1 1:1 id: 1 quant:1
 [mjpeg @ 0x3731ba0] component 2 1:1 id: 2 quant:1
 [mjpeg @ 0x3731ba0] pix fmt id 21111100
 [mjpeg @ 0x3731ba0] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x3731ba0] escaping removed 119331 bytes
 [mjpeg @ 0x3731ba0] marker=da avail_size_in_buf=239350
 [mjpeg @ 0x3731ba0] component: 0
 [mjpeg @ 0x3731ba0] component: 1
 [mjpeg @ 0x3731ba0] component: 2
 [mjpeg @ 0x3731ba0] marker parser used 120018 bytes (960141 bits)
 [mjpeg @ 0x3731ba0] marker=d9 avail_size_in_buf=118322
 [mjpeg @ 0x3731ba0] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x3731ba0] marker=d8 avail_size_in_buf=118318
 [mjpeg @ 0x3731ba0] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x3731ba0] marker=e0 avail_size_in_buf=118316
 [mjpeg @ 0x3731ba0] polarity 2
 [mjpeg @ 0x3731ba0] marker parser used 15 bytes (120 bits)
 [mjpeg @ 0x3731ba0] marker=dd avail_size_in_buf=118298
 [mjpeg @ 0x3731ba0] restart interval: 0
 [mjpeg @ 0x3731ba0] marker parser used 4 bytes (32 bits)
 [mjpeg @ 0x3731ba0] marker=db avail_size_in_buf=118292
 [mjpeg @ 0x3731ba0] index=0
 [mjpeg @ 0x3731ba0] qscale[0]: 0
 [mjpeg @ 0x3731ba0] index=1
 [mjpeg @ 0x3731ba0] qscale[1]: 0
 [mjpeg @ 0x3731ba0] marker parser used 132 bytes (1056 bits)
 [mjpeg @ 0x3731ba0] marker=c0 avail_size_in_buf=118158
 [mjpeg @ 0x3731ba0] sof0: picture: 468x156
 [mjpeg @ 0x3731ba0] component 0 2:1 id: 0 quant:0
 [mjpeg @ 0x3731ba0] component 1 1:1 id: 1 quant:1
 [mjpeg @ 0x3731ba0] component 2 1:1 id: 2 quant:1
 [mjpeg @ 0x3731ba0] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x3731ba0] escaping removed 900 bytes
 [mjpeg @ 0x3731ba0] marker=da avail_size_in_buf=118139
 [mjpeg @ 0x3731ba0] component: 0
 [mjpeg @ 0x3731ba0] component: 1
 [mjpeg @ 0x3731ba0] component: 2
 [mjpeg @ 0x3731ba0] marker parser used 117238 bytes (937904 bits)
 [mjpeg @ 0x3731ba0] marker=d9 avail_size_in_buf=2
 [mjpeg @ 0x3731ba0] decode frame unused 2 bytes
 [avi @ 0x3731100] Probe buffer size limit of 5000000 bytes reached
 [avi @ 0x3731100] Stream #1: not enough frames to estimate rate; consider
 increasing probesize
 [avi @ 0x3731100] After avformat_find_stream_info() pos: 5167988 bytes
 read:5276374 seeks:6 frames:21
 Guessed Channel Layout for  Input Stream #0.1 : stereo
 Input #0, avi, from 'bad.avi':
   Duration: 00:00:06.03, start: 0.000000, bitrate: 40053 kb/s
     Stream #0:0, 21, 1/30: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc),
 468x312, 1/30, 30 fps, 30 tbr, 30 tbn, 30 tbc
     Stream #0:1, 0, 1/44100: Audio: pcm_s16le ([1][0][0][0] / 0x0001),
 44100 Hz, stereo, s16, 1411 kb/s
 Successfully opened the file.
 At least one output file must be specified
 [AVIOContext @ 0x37397c0] Statistics: 5276374 bytes read, 6 seeks
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3229#comment:2>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list