Opened 10 years ago

Closed 8 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 10 years ago.

Download all attachments as: .zip

Change History (11)

by ami_stuff, 10 years ago

comment:1 by Carl Eugen Hoyos, 10 years ago

Component: undeterminedavcodec
Keywords: tif added
Priority: normalwish
Reproduced by developer: set
Status: newopen
Type: defectenhancement
Version: unspecifiedgit-master

comment:2 by Elon Musk, 8 years ago

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

in reply to:  2 comment:3 by ami_stuff, 8 years ago

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 by Elon Musk, 8 years ago

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

comment:5 by Carl Eugen Hoyos, 8 years ago

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 by Elon Musk, 8 years ago

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

in reply to:  6 comment:7 by Carl Eugen Hoyos, 8 years ago

Replying to richardpl:

Tiff encoder writes packed yuvs only.

Thank you for the explanation!

comment:8 by ami_stuff, 8 years ago

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 by Elon Musk, 8 years ago

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 by Carl Eugen Hoyos, 8 years ago

Resolution: fixed
Status: openclosed

Implemented by Paul B Mahol in 379ad97.

Note: See TracTickets for help on using tickets.