Opened 3 years ago

Closed 3 years ago

Last modified 3 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 3 years ago.
patchpsd32.diff (3.0 KB) - added by cehoyos 3 years ago.

Download all attachments as: .zip

Change History (8)

Changed 3 years ago by ami_stuff

comment:1 Changed 3 years ago by ami_stuff

isn't this fixed?

comment:2 follow-up: Changed 3 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords psd added
  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from unspecified to git-master

Changed 3 years ago by cehoyos

comment:3 Changed 3 years ago by cehoyos

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

comment:4 follow-up: Changed 3 years ago by cehoyos

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

comment:5 in reply to: ↑ 2 Changed 3 years ago by ami_stuff

Replying to cehoyos:

Fixed in 28307ef7e62874ad5925885af9ccc6423ff83841

Thanks.

comment:6 in reply to: ↑ 4 Changed 3 years ago by ami_stuff

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.