[FFmpeg-trac] #1286(undetermined:new): qt tiff pal8 enc: wrong colors in qt

FFmpeg trac at avcodec.org
Tue May 8 19:00:58 CEST 2012


#1286: qt tiff pal8 enc: wrong colors in qt
-------------------------------------+-------------------------------------
               Reporter:  ami_stuff  |                  Owner:
                   Type:  defect     |                 Status:  new
               Priority:  normal     |              Component:
                Version:             |  undetermined
  unspecified                        |               Keywords:
             Blocked By:             |               Blocking:
Reproduced by developer:  0          |  Analyzed by developer:  0
-------------------------------------+-------------------------------------
 I have tried to find out why mov tiff pal8 files doesn't decode with
 correct colors in qt
 (probably the same reason would be for png/tga pal8 in mov).

 pal8_qt.tif - tiff 8bpp exported from qt


 ffmpeg -i pal8_qt.tif -vcodec tiff -pix_fmt pal8 pal8.mov - decodes with
 correct colors in qt (no swscale)

 (
 or

 ffmpeg -i pal8_qt.tif -pix_fmt pal8 pal8_ff.tif
 ffmpeg -i pal8_ff.tif -vcodec tiff -pix_fmt pal8 pal8.mov - decodes with
 correct colors in qt (no swscale)
 }



 ffmpeg -i pal8_qt.tif -pix_fmt rgb24 rgb24.tif
 ffmpeg -i rgb24.tif -vcodec tiff -pix_fmt pal8 pal8_from_rgb24.mov -
 decodes with wrong colors in qt (swscale - rgb24 -> pal8)

 (or

 ffmpeg -i pal8_qt.tif -s 32x32 -pix_fmt pal8 pal8_ff_32.tif
 ffmpeg -i pal8_ff_32.tif -vcodec tif -vcodec tiff -pix_fmt pal8
 pal8_ff_32.mov) - decodes with wrong colors in qt (swscale - resize)
 }


 now when I modify $F7 value to $F8 (see pal8_diff.jpg) in
 pal8_from_rgb24.mov file and copy/paste
 mdat hunk from pal8.mov (see pal8.jpg) to pal8_from_rgb24.mov (see
 pal8_from_rgb24.jpg) then modified
 file have correct colors in qt, so looks like the problem is in data
 exported by ffmpeg when conversion
 to pal8 happens (and swscale is used).

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


More information about the FFmpeg-trac mailing list