[FFmpeg-trac] #5071(avformat:closed): FFmpeg doesn't use the correct palette when playing Apple Graphics (SMC) in Matroska

FFmpeg trac at avcodec.org
Sun Dec 6 21:02:50 CET 2015


#5071: FFmpeg doesn't use the correct palette when playing Apple Graphics (SMC) in
Matroska
-------------------------------------+-------------------------------------
             Reporter:  matsp888     |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  unspecified  |               Resolution:
             Keywords:               |  needs_more_info
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by RiCON):

 If the source file was http://samples.mplayerhq.hu/V-codecs/SMC/aletrek-
 smc.mov both remuxing with latest mkvmerge and ffmpeg to matroska seem to
 lose some kind of information.

 Likely source file (file plays fine on mpv):
 {{{
 ffprobe -i aletrek-smc.mov
 ffprobe version N-77079-g27c90b7 Copyright (c) 2007-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-libmp3lame --enable-libvorbis
 --enable-libx264 --disable-decoder=dca --enable-libdcadec --disable-
 postproc --enable-gmp --disable-doc --enable-libvpx --enable-libopus
 --disable-hwaccels --disable-sdl --disable-encoder=vorbis --disable-
 demuxer=asf --enable-gpl --enable-version3 --disable-debug
   libavutil      55. 10.100 / 55. 10.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 20.100 /  6. 20.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aletrek-smc.mov':
   Metadata:
     creation_time   : 2002-10-16 23:31:08
   Duration: 00:00:03.33, start: 0.000000, bitrate: 309 kb/s
     Stream #0:0(eng): Video: smc (smc  / 0x20636D73), pal8, 160x120, 307
 kb/s, 10.20 fps, 10 tbr, 600 tbn, 600 tbc (default)
     Metadata:
       creation_time   : 2002-10-16 23:31:08
       handler_name    : Apple Alias Data Handler
       encoder         : Graphics
 }}}

 Sample provided (immediately closes after opening on mpv):
 {{{
 ffprobe -i aletrek.mkv
 ffprobe version N-77079-g27c90b7 Copyright (c) 2007-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-libmp3lame --enable-libvorbis
 --enable-libx264 --disable-decoder=dca --enable-libdcadec --disable-
 postproc --enable-gmp --disable-doc --enable-libvpx --enable-libopus
 --disable-hwaccels --disable-sdl --disable-encoder=vorbis --disable-
 demuxer=asf --enable-gpl --enable-version3 --disable-debug
   libavutil      55. 10.100 / 55. 10.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 20.100 /  6. 20.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 Input #0, matroska,webm, from 'aletrek.mkv':
   Metadata:
     encoder         : libebml v1.3.1 + libmatroska v1.4.2
     creation_time   : 2015-12-06 11:00:32
     COLLECTION/TITLE: Clips
     CATEGORY/TITLE  : Misc
     MOVIE/COMMENT   : MPlayer/FFmpeg doesn’t use the correct palette when
 playing
                     : Apple Graphics in Matroska.
     MOVIE/DATE_ENCODED: 2002‐10‐16T23:31:08
     MOVIE/TITLE     : aletrek
   Duration: 00:00:03.40, start: 0.000000, bitrate: 318 kb/s
     Stream #0:0: Video: smc (smc  / 0x20636D73), pal8, 160x120, SAR 1:1
 DAR 4:3, 10 fps, 10 tbr, 1k tbn, 1k tbc (default)
     Metadata:
       DATE_ENCODED    : 2002‐10‐16T23:31:08
 }}}

 Source file remuxed to mkv using `ffmpeg -i aletrek-smc.mov -c copy
 aletrek-ffmpeg-remux.mkv`:

 {{{
 ffprobe -i aletrek-ffmpeg-remux.mkv
 ffprobe version N-77079-g27c90b7 Copyright (c) 2007-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-libmp3lame --enable-libvorbis
 --enable-libx264 --disable-decoder=dca --enable-libdcadec --disable-
 postproc --enable-gmp --disable-doc --enable-libvpx --enable-libopus
 --disable-hwaccels --disable-sdl --disable-encoder=vorbis --disable-
 demuxer=asf --enable-gpl --enable-version3 --disable-debug
   libavutil      55. 10.100 / 55. 10.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 20.100 /  6. 20.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 [matroska,webm @ 0000004702c62c40] Unknown/unsupported AVCodecID
 V_QUICKTIME.
 [matroska,webm @ 0000004702c62c40] Could not find codec parameters for
 stream 0 (Video: none, none, 160x120): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 options
 aletrek-ffmpeg-remux.mkv: End of file
 }}}

 Source file remuxed with mkvmerge 8.6.1 `mkvmerge aletrek-smc.mov -o
 aletrek-mkvmerge8.6.1-remux.mkv`:

 {{{
 ffprobe -i aletrek-mkvmerge8.6.1-remux.mkv
 ffprobe version N-77079-g27c90b7 Copyright (c) 2007-2015 the FFmpeg
 developers
   built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
   configuration:  --enable-avisynth --enable-libmp3lame --enable-libvorbis
 --enable-libx264 --disable-decoder=dca --enable-libdcadec --disable-
 postproc --enable-gmp --disable-doc --enable-libvpx --enable-libopus
 --disable-hwaccels --disable-sdl --disable-encoder=vorbis --disable-
 demuxer=asf --enable-gpl --enable-version3 --disable-debug
   libavutil      55. 10.100 / 55. 10.100
   libavcodec     57. 16.101 / 57. 16.101
   libavformat    57. 19.100 / 57. 19.100
   libavdevice    57.  0.100 / 57.  0.100
   libavfilter     6. 20.100 /  6. 20.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
 Input #0, matroska,webm, from 'aletrek-mkvmerge8.6.1-remux.mkv':
   Metadata:
     encoder         : libebml v1.3.3 + libmatroska v1.4.4
     creation_time   : 2015-12-06 19:49:31
   Duration: 00:00:03.40, start: 0.000000, bitrate: 317 kb/s
     Stream #0:0: Video: smc (smc  / 0x20636D73), pal8, 160x120, SAR 1:1
 DAR 4:3, 10 fps, 10 tbr, 1k tbn, 1k tbc (default)
     Metadata:
       BPS             : 301070
       BPS-eng         : 301070
       DURATION        : 00:00:03.400000000
       DURATION-eng    : 00:00:03.400000000
       NUMBER_OF_FRAMES: 34
       NUMBER_OF_FRAMES-eng: 34
       NUMBER_OF_BYTES : 127955
       NUMBER_OF_BYTES-eng: 127955
       _STATISTICS_WRITING_APP: mkvmerge v8.6.1 ('Flying') 64bit
       _STATISTICS_WRITING_APP-eng: mkvmerge v8.6.1 ('Flying') 64bit
       _STATISTICS_WRITING_DATE_UTC: 2015-12-06 19:49:31
       _STATISTICS_WRITING_DATE_UTC-eng: 2015-12-06 19:49:31
       _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
       _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5071#comment:32>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list