Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#6045 closed defect (fixed)

psd: support 8bpp (indexed color) mode

Reported by: ami_stuff Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: psd
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

decodes ok with imagemagick

other psd samples are here:

http://www.megafileupload.com/gxKZ/psd.7z

C:\>ffmpeg -i C:\8bits_per_ch_indexed.psd
ffmpeg version 3.2.git Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.6.2 (GCC)
  configuration: --disable-pthreads --enable-gpl
  libavutil      55. 43.100 / 55. 43.100
  libavcodec     57. 68.100 / 57. 68.100
  libavformat    57. 61.100 / 57. 61.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 68.100 /  6. 68.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
[psd @ 0224d660] Warning: not compiled with thread support, using thread emulati
on
[psd @ 0224d660] color mode 2 is not implemented. Update your FFmpeg version to
the newest one from Git. If the problem still occurs, it means that your file ha
s a feature which has not been implemented.
[psd_pipe @ 02243be0] decoding for stream 0 failed
[psd_pipe @ 02243be0] Could not find codec parameters for stream 0 (Video: psd,
none, 1023x767): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, psd_pipe, from 'C:\8bits_per_ch_indexed.psd':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: psd, none, 1023x767, 25 tbr, 25 tbn, 25 tbc
At least one output file must be specified

Attachments (2)

8bits_per_ch_indexed.psd (738.1 KB ) - added by ami_stuff 5 years ago.
patchpsd32.diff (3.0 KB ) - added by Carl Eugen Hoyos 5 years ago.

Download all attachments as: .zip

Change History (8)

by ami_stuff, 5 years ago

Attachment: 8bits_per_ch_indexed.psd added

comment:1 by ami_stuff, 5 years ago

isn't this fixed?

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavcodec
Keywords: psd added
Reproduced by developer: set
Resolution: fixed
Status: newclosed
Version: unspecifiedgit-master

by Carl Eugen Hoyos, 5 years ago

Attachment: patchpsd32.diff added

comment:3 by Carl Eugen Hoyos, 5 years ago

PoC for 32bit rgb and grayscale attached, I don't understand the format.

comment:4 by Carl Eugen Hoyos, 5 years ago

If you open 8bits_per_ch_duotone.psd with Photoshop, does it look gray or is there a coloured background?

in reply to:  2 comment:5 by ami_stuff, 5 years ago

Replying to cehoyos:

Fixed in 28307ef7e62874ad5925885af9ccc6423ff83841

Thanks.

in reply to:  4 comment:6 by ami_stuff, 5 years ago

Replying to cehoyos:

If you open 8bits_per_ch_duotone.psd with Photoshop, does it look gray or is there a coloured background?

gray

Note: See TracTickets for help on using tickets.