[FFmpeg-trac] #426(avcodec:reopened): Clip buggy playback in ffmpeg but ok in vlc or QT

FFmpeg trac at avcodec.org
Fri Sep 2 09:46:43 CEST 2011


#426: Clip buggy playback in ffmpeg but ok in vlc or QT
------------------------------------------+-----------------------
Reporter:  ehsmeng                        |       Owner:
    Type:  defect                         |      Status:  reopened
Priority:  important                      |   Component:  avcodec
 Version:  git-master                     |  Resolution:
Keywords:  mjpeg yuvj422p regression rst  |  Blocked By:
Blocking:                                 |  Reproduced:  1
Analyzed:  0                              |
------------------------------------------+-----------------------
Changes (by cehoyos):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Still broken, attached is the 12th frame of the original sample,
 sufficient to reproduce the problem visually. (Looks fine with ImageMagick
 and older FFmpeg versions.)
 {{{
 $ ffmpeg -v 9 -loglevel 99 -i out12.jpg out.png
 ffmpeg version N-32290-g6fc1299, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on Sep  2 2011 09:37:52 with gcc 4.5.3
   configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
   libavutil    51. 14. 0 / 51. 14. 0
   libavcodec   53. 12. 0 / 53. 12. 0
   libavformat  53. 10. 0 / 53. 10. 0
   libavdevice  53.  3. 0 / 53.  3. 0
   libavfilter   2. 37. 0 /  2. 37. 0
   libswscale    2.  0. 0 /  2.  0. 0
 [mjpeg @ 0x12a37e0] Unsupported bit depth: 0
 [mjpeg @ 0x12a37e0] buffer too small, expanding to 797817 bytes
 [mjpeg @ 0x12a37e0] marker=d8 avail_size_in_buf=797817
 [mjpeg @ 0x12a37e0] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x12a37e0] marker=e0 avail_size_in_buf=797815
 [mjpeg @ 0x12a37e0] marker parser used 16 bytes (128 bits)
 [mjpeg @ 0x12a37e0] marker=fe avail_size_in_buf=797797
 [mjpeg @ 0x12a37e0] marker parser used 12 bytes (96 bits)
 [mjpeg @ 0x12a37e0] marker=db avail_size_in_buf=797783
 [mjpeg @ 0x12a37e0] index=0
 [mjpeg @ 0x12a37e0] qscale[0]: 0
 [mjpeg @ 0x12a37e0] index=1
 [mjpeg @ 0x12a37e0] qscale[1]: 1
 [mjpeg @ 0x12a37e0] marker parser used 132 bytes (1056 bits)
 [mjpeg @ 0x12a37e0] marker=c4 avail_size_in_buf=797649
 [mjpeg @ 0x12a37e0] class=0 index=0 nb_codes=12
 [mjpeg @ 0x12a37e0] class=0 index=1 nb_codes=12
 [mjpeg @ 0x12a37e0] class=1 index=0 nb_codes=251
 [mjpeg @ 0x12a37e0] class=1 index=1 nb_codes=251
 [mjpeg @ 0x12a37e0] marker parser used 418 bytes (3344 bits)
 [mjpeg @ 0x12a37e0] marker=dd avail_size_in_buf=797229
 [mjpeg @ 0x12a37e0] restart interval: 120
 [mjpeg @ 0x12a37e0] marker parser used 4 bytes (32 bits)
 [mjpeg @ 0x12a37e0] marker=c0 avail_size_in_buf=797223
 [mjpeg @ 0x12a37e0] sof0: picture: 1920x1080
 [mjpeg @ 0x12a37e0] component 0 2:1 id: 0 quant:0
 [mjpeg @ 0x12a37e0] component 1 1:1 id: 1 quant:1
 [mjpeg @ 0x12a37e0] component 2 1:1 id: 2 quant:1
 [mjpeg @ 0x12a37e0] pix fmt id 21111100
 [mjpeg @ 0x12a37e0] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x12a37e0] escaping removed 8032 bytes
 [mjpeg @ 0x12a37e0] marker=da avail_size_in_buf=797204
 [mjpeg @ 0x12a37e0] component: 0
 [mjpeg @ 0x12a37e0] component: 1
 [mjpeg @ 0x12a37e0] component: 2
 [mjpeg @ 0x12a37e0] mjpeg decode frame unused 797204 bytes
 Input #0, image2, from 'out12.jpg':
   Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
     Stream #0.0, 1, 1/25: Video: mjpeg, yuvj422p, 1920x1080 [SAR 72:72 DAR
 16:9], 1/25, 25 tbr, 25 tbn, 25 tbc
 Incompatible pixel format 'yuvj422p' for codec 'png', auto-selecting
 format 'rgb24'
 [buffer @ 0x12a1140] w:1920 h:1080 pixfmt:yuvj422p tb:1/1000000 sar:72/72
 sws_param:
 [buffersink @ 0x12a3040] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'src' and the filter 'out'
 [scale @ 0x129b400] w:1920 h:1080 fmt:yuvj422p -> w:1920 h:1080 fmt:rgb24
 flags:0x4
 [swscaler @ 0x12ad620] No accelerated colorspace conversion found from
 yuv422p to rgb24.
 [swscaler @ 0x12b2d60] No accelerated colorspace conversion found from
 yuv422p to rgb24.
 [swscaler @ 0x12b84a0] No accelerated colorspace conversion found from
 yuv422p to rgb24.
 [png @ 0x12a0ba0] Unsupported bit depth: 0
 [mjpeg @ 0x12a37e0] Unsupported bit depth: 0
 Output #0, image2, to 'out.png':
   Metadata:
     encoder         : Lavf53.10.0
     Stream #0.0, 0, 1/90000: Video: png, rgb24, 1920x1080 [SAR 1:1 DAR
 16:9], 1/25, q=2-31, 200 kb/s, 90k tbn, 25 tbc
 Stream mapping:
   Stream #0.0 -> #0.0 (mjpeg -> png)
 Press [q] to stop, [?] for help
 [mjpeg @ 0x12a37e0] buffer too small, expanding to 797817 bytes
 [mjpeg @ 0x12a37e0] marker=d8 avail_size_in_buf=797817
 [mjpeg @ 0x12a37e0] marker parser used 0 bytes (0 bits)
 [mjpeg @ 0x12a37e0] marker=e0 avail_size_in_buf=797815
 [mjpeg @ 0x12a37e0] marker parser used 16 bytes (128 bits)
 [mjpeg @ 0x12a37e0] marker=fe avail_size_in_buf=797797
 [mjpeg @ 0x12a37e0] marker parser used 12 bytes (96 bits)
 [mjpeg @ 0x12a37e0] marker=db avail_size_in_buf=797783
 [mjpeg @ 0x12a37e0] index=0
 [mjpeg @ 0x12a37e0] qscale[0]: 0
 [mjpeg @ 0x12a37e0] index=1
 [mjpeg @ 0x12a37e0] qscale[1]: 1
 [mjpeg @ 0x12a37e0] marker parser used 132 bytes (1056 bits)
 [mjpeg @ 0x12a37e0] marker=c4 avail_size_in_buf=797649
 [mjpeg @ 0x12a37e0] class=0 index=0 nb_codes=12
 [mjpeg @ 0x12a37e0] class=0 index=1 nb_codes=12
 [mjpeg @ 0x12a37e0] class=1 index=0 nb_codes=251
 [mjpeg @ 0x12a37e0] class=1 index=1 nb_codes=251
 [mjpeg @ 0x12a37e0] marker parser used 418 bytes (3344 bits)
 [mjpeg @ 0x12a37e0] marker=dd avail_size_in_buf=797229
 [mjpeg @ 0x12a37e0] restart interval: 120
 [mjpeg @ 0x12a37e0] marker parser used 4 bytes (32 bits)
 [mjpeg @ 0x12a37e0] marker=c0 avail_size_in_buf=797223
 [mjpeg @ 0x12a37e0] sof0: picture: 1920x1080
 [mjpeg @ 0x12a37e0] component 0 2:1 id: 0 quant:0
 [mjpeg @ 0x12a37e0] component 1 1:1 id: 1 quant:1
 [mjpeg @ 0x12a37e0] component 2 1:1 id: 2 quant:1
 [mjpeg @ 0x12a37e0] pix fmt id 21111100
 [mjpeg @ 0x12a37e0] marker parser used 17 bytes (136 bits)
 [mjpeg @ 0x12a37e0] escaping removed 8032 bytes
 [mjpeg @ 0x12a37e0] marker=da avail_size_in_buf=797204
 [mjpeg @ 0x12a37e0] component: 0
 [mjpeg @ 0x12a37e0] component: 1
 [mjpeg @ 0x12a37e0] component: 2
 [mjpeg @ 0x12a37e0] mjpeg decode frame unused 797204 bytes
 frame=    1 fps=  0 q=0.0 Lsize=      -0kB time=00:00:00.04 bitrate=
 -4.4kbits/s    ^M
 video:4538kB audio:0kB global headers:0kB muxing overhead -100.000473%}}}

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/426#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list