[FFmpeg-trac] #3616(undetermined:new): Mjpeg misdetection

FFmpeg trac at avcodec.org
Tue May 6 08:46:51 CEST 2014


#3616: Mjpeg misdetection
-------------------------------------+-------------------------------------
             Reporter:  Đonny        |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:  mjpeg        |               Blocked By:
  detection                          |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 I have one strange MJPEG file. If the file is stored with .mjpeg extension
 ffprobe/ffplay works just fine. If the file has .avi extension it
 misdetects format as AVI and then refuses to play. If it has some random
 extension (or no extension at all) the file also cannot be played.
 How to reproduce:
 .mjpeg
 {{{
 D:\UgcTestFiles\Video>ffprobe MJPEG.mjpeg
 ffprobe version N-62963-g656fe7e Copyright (c) 2007-2014 the FFmpeg
 developers
   built on May  4 2014 22:09:17 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable
 -libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheo
 ra --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-decklink --enable-zlib
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 Input #0, mjpeg, from 'MJPEG.mjpeg':
   Duration: N/A, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj420p(pc), 1280x720, 25 fps, 25 tbr,
 1200k tbn, 25 tbc
 }}}
 .xxx
 {{{
 D:\UgcTestFiles\Video>ffprobe MJPEG.xxx
 ffprobe version N-62963-g656fe7e Copyright (c) 2007-2014 the FFmpeg
 developers
   built on May  4 2014 22:09:17 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable
 -libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheo
 ra --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-decklink --enable-zlib
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 MJPEG.xxx: Invalid data found when processing input
 }}}
 .avi
 {{{
 D:\UgcTestFiles\Video>ffprobe MJPEG.avi
 ffprobe version N-62963-g656fe7e Copyright (c) 2007-2014 the FFmpeg
 developers
   built on May  4 2014 22:09:17 with gcc 4.8.2 (GCC)
   configuration: --enable-gpl --enable-version3 --disable-w32threads
 --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
 --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
 --enable-libcaca --enable-libfreetype --enable
 -libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-
 libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
 --enable-libopus --enable-librtmp --enable-libschroedinger --enable-
 libsoxr --enable-libspeex --enable-libtheo
 ra --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-
 libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
 --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-decklink --enable-zlib
   libavutil      52. 81.100 / 52. 81.100
   libavcodec     55. 60.103 / 55. 60.103
   libavformat    55. 37.102 / 55. 37.102
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [avi @ 0000000002a44920] Format avi detected only with low score of 1,
 misdetection possible!
 MJPEG.avi: Invalid data found when processing input
 }}}

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


More information about the FFmpeg-trac mailing list