[FFmpeg-trac] #3874(avcodec:open): tiff encoder creates broken odd width yuv files

FFmpeg trac at avcodec.org
Thu Oct 16 12:09:29 CEST 2014

#3874: tiff encoder creates broken odd width yuv files
             Reporter:  ami_stuff    |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  tif tiffenc  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |

Comment (by kurosu):

 Replying to [comment:13 ami_stuff]:
 > The only problem happens with other software like ImageMagick and the
 rest which, as I understand, you belive is at fauly in some way. If this
 is true then this ticket can be closed.

 Yes, try the attached yuv.tiff generated by:
 ffmpeg -i lena.pnm -s 323x240 lena.tiff
 rgb2ycbcr -c none -h 4 -v 4 lena.tiff yuv.tiff

 Gimp displays green garbages at the bottom of stripes I suspect to be a
 multiple of 4 in height. XnView shows staircases. ffmpeg decoded output is

 > I don't know any software (other than ffmpeg) which can generate YUV

 Please test them with the attached file or one generated following your

 Regarding the yuv data, the real issue is rather the sampling. See the h/v
 parameters to rgbycbcr:

Ticket URL: <https://trac.ffmpeg.org/ticket/3874#comment:15>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list