[FFmpeg-trac] #3916(undetermined:new): Unable to display stream metadata for AVI with PNG compression

FFmpeg trac at avcodec.org
Tue Sep 2 11:17:04 CEST 2014


#3916: Unable to display stream metadata for AVI with PNG compression
-------------------------------------+-------------------------------------
             Reporter:  callan       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug: FFmpeg (via `ffprobe`) is unable to display stream
 metadata for PNG compressed AVIs created by ImageJ
 (http://imagej.nih.gov/ij/). `ffplay` is also not able to play the AVI. It
 is playable using !QuickTime X or !QuickTime 7 on Mac OS X and !QuickTime
 7 on Windows 7 but not out of the box using Windows Media Player 12 on
 Windows 7. VLC also plays the AVI correctly.

 Full encoder source is available here:
  *
 https://github.com/imagej/imagej1/blob/master/ij/plugin/filter/AVI_Writer.java

 Attaching the entire 285836 byte file for analysis.

 How to reproduce:
 {{{
 $ ffprobe -show_streams -v 9 -loglevel 99 avi_with_png_compression.avi
 ffprobe version N-66035-g4cabee5 Copyright (c) 2007-2014 the FFmpeg
 developers
   built on Sep  2 2014 09:12:04 with Apple LLVM version 5.1
 (clang-503.0.40) (based on LLVM 3.4svn)
   configuration: --prefix=/Users/callan/app/ffmpeg --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --enable-
 libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-
 libtheora --enable-libvorbis --enable-libvpx --enable-ffplay
   libavutil      54.  7.100 / 54.  7.100
   libavcodec     56.  1.100 / 56.  1.100
   libavformat    56.  3.100 / 56.  3.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.103 /  5.  0.103
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  0.100 / 53.  0.100
 [avi @ 0x7fbfd181e600] Format avi probed with size=2048 and score=100
 [avi @ 0x7fbfd1413440] use odml:1
 [avi @ 0x7fbfd181e600] Before avformat_find_stream_info() pos: 4108 bytes
 read:108136 seeks:4
 [avi @ 0x7fbfd181e600] parser not found for codec none, packets or times
 may be invalid.
     Last message repeated 1 times
 [avi @ 0x7fbfd181e600] max_analyze_duration 5000000 reached at 5000000
 microseconds
 [avi @ 0x7fbfd181e600] Could not find codec parameters for stream 0
 (Video: none (png  / 0x20676E70), 30x26, 1/30, 215 kb/s): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [avi @ 0x7fbfd181e600] After avformat_find_stream_info() pos: 141733 bytes
 read:239208 seeks:4 frames:150
 avi_with_png_compression.avi: Operation not permitted
 }}}

 {{{
 $ ffmpeg -v 9 -loglevel 99 -i avi_with_png_compression.avi
 ffmpeg version N-66035-g4cabee5 Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Sep  2 2014 09:12:04 with Apple LLVM version 5.1
 (clang-503.0.40) (based on LLVM 3.4svn)
   configuration: --prefix=/Users/callan/app/ffmpeg --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree
 --enable-hardcoded-tables --enable-avresample --enable-vda --enable-
 libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-
 libtheora --enable-libvorbis --enable-libvpx --enable-ffplay
   libavutil      54.  7.100 / 54.  7.100
   libavcodec     56.  1.100 / 56.  1.100
   libavformat    56.  3.100 / 56.  3.100
   libavdevice    56.  0.100 / 56.  0.100
   libavfilter     5.  0.103 /  5.  0.103
   libavresample   2.  1.  0 /  2.  1.  0
   libswscale      3.  0.100 /  3.  0.100
   libswresample   1.  1.100 /  1.  1.100
   libpostproc    53.  0.100 / 53.  0.100
 Splitting the commandline.
 Reading option '-v' ... matched as option 'v' (set logging level) with
 argument '9'.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument '99'.
 Reading option '-i' ... matched as input file with argument
 'avi_with_png_compression.avi'.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option v (set logging level) with argument 9.
 Successfully parsed a group of options.
 Parsing a group of options: input file avi_with_png_compression.avi.
 Successfully parsed a group of options.
 Opening an input file: avi_with_png_compression.avi.
 [avi @ 0x7f85ab023400] Format avi probed with size=2048 and score=100
 [avi @ 0x7f85aac13ca0] use odml:1
 [avi @ 0x7f85ab023400] Before avformat_find_stream_info() pos: 4108 bytes
 read:108136 seeks:4
 [avi @ 0x7f85ab023400] parser not found for codec none, packets or times
 may be invalid.
     Last message repeated 1 times
 [avi @ 0x7f85ab023400] max_analyze_duration 5000000 reached at 5000000
 microseconds
 [avi @ 0x7f85ab023400] Could not find codec parameters for stream 0
 (Video: none (png  / 0x20676E70), 30x26, 1/30, 215 kb/s): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 [avi @ 0x7f85ab023400] After avformat_find_stream_info() pos: 141733 bytes
 read:239208 seeks:4 frames:150
 avi_with_png_compression.avi: could not find codec parameters
 Input #0, avi, from 'avi_with_png_compression.avi':
   Duration: 00:00:10.23, start: 0.000000, bitrate: 223 kb/s
     Stream #0:0, 150, 1/30: Video: none (png  / 0x20676E70), 30x26, 1/30,
 215 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
     Metadata:
       title           : ImageJ AVI
 Successfully opened the file.
 At least one output file must be specified
 [AVIOContext @ 0x7f85aac13be0] Statistics: 239208 bytes read, 4 seeks
 }}}

 {{{
 $ ffmpeg -version
 ffmpeg version N-66035-g4cabee5 Copyright (c) 2000-2014 the FFmpeg
 developers
 built on Sep  2 2014 09:12:04 with Apple LLVM version 5.1 (clang-503.0.40)
 (based on LLVM 3.4svn)
 configuration: --prefix=/Users/callan/app/ffmpeg --enable-shared --enable-
 pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-
 hardcoded-tables --enable-avresample --enable-vda --enable-libx264
 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libtheora
 --enable-libvorbis --enable-libvpx --enable-ffplay
 libavutil      54.  7.100 / 54.  7.100
 libavcodec     56.  1.100 / 56.  1.100
 libavformat    56.  3.100 / 56.  3.100
 libavdevice    56.  0.100 / 56.  0.100
 libavfilter     5.  0.103 /  5.  0.103
 libavresample   2.  1.  0 /  2.  1.  0
 libswscale      3.  0.100 /  3.  0.100
 libswresample   1.  1.100 /  1.  1.100
 libpostproc    53.  0.100 / 53.  0.100
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3916>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list