Opened 6 years ago

Closed 4 years ago

#741 closed enhancement (fixed)

tiff: support pixel order per channel (RRGGBB)

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

Description

C:\>ffmpeg -i pixel_order_per_channel_RRGGBB.tif
ffmpeg version N-35709-g7d531e8, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 12 2011 13:50:00 with gcc 4.6.2
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 43. 0 / 53. 43. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[tiff @ 02625B60] Planar format is not supported
[image2 @ 020C2320] Could not find codec parameters (Video: tiff)
pixel_order_per_channel_RRGGBB.tif: could not find codec parameters

Attachments (1)

pixel_order_per_channel_RRGGBB.tif (236.4 KB) - added by ami_stuff 6 years ago.

Download all attachments as: .zip

Change History (11)

Changed 6 years ago by ami_stuff

comment:1 Changed 6 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Keywords tif added
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Type changed from defect to enhancement
  • Version changed from unspecified to git-master

comment:2 follow-up: Changed 4 years ago by richardpl

Could you upload other samples, hopefuly more complicated (no simple shapes) with different compressions? (packbits, deflate ..)

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

Replying to richardpl:

Could you upload other samples, hopefuly more complicated (no simple shapes) with different compressions? (packbits, deflate ..)

more samples:

http://www1.datafilehost.com/d/cf31bee2

comment:4 Changed 4 years ago by richardpl

Could you upload yuv colorspace samples that are planar too? And maybe 16 bit planar rgb too, with and without alpha.

comment:5 Changed 4 years ago by cehoyos

As in:

$ ffmpeg -i tests/lena.pnm -pix_fmt yuv420p 420.tif
$ ffmpeg -i tests/lena.pnm -pix_fmt yuv422p 422.tif
$ ffmpeg -i tests/lena.pnm -pix_fmt yuv440p 440.tif
$ ffmpeg -i tests/lena.pnm -pix_fmt yuv444p 444.tif
$ ffmpeg -i tests/lena.pnm -pix_fmt yuv410p 410.tif
$ ffmpeg -i tests/lena.pnm -pix_fmt yuv411p 411.tif

?

comment:6 follow-up: Changed 4 years ago by richardpl

Tiff encoder writes packed yuvs only. tiffinfo reports, among others: Planar Configuration: single image plane

comment:7 in reply to: ↑ 6 Changed 4 years ago by cehoyos

Replying to richardpl:

Tiff encoder writes packed yuvs only.

Thank you for the explanation!

comment:8 Changed 4 years ago by ami_stuff

this:

tiffcp -c none -p separate 420.tif 420_p.tif

fails for me with error:

PackBitsDecode: Not enough data for scanline 3

comment:9 Changed 4 years ago by richardpl

Thanks to pointing out tiffcp.

I managed to create planar yuv444p (subsampled ones appear to be unsupported same apply to bps != 8 for rgb, probably tiffcp limitation).

So if any other program can create subsampled planar yuvs or 16 bps rgb planar files upload such samples. Thanks.

comment:10 Changed 4 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Implemented by Paul B Mahol in 379ad97.

Note: See TracTickets for help on using tickets.