Page 1 of 1

Crash opening YCbCr Tiff in x64

Posted: 2010-04-29T21:43:09-07:00
by foxyshadis
This image causes a crash, only in x64 windows compiles, not either 32-bit. If I get a chance I'll further debug it.

Re: Crash opening YCbCr Tiff in x64

Posted: 2010-04-29T22:05:03-07:00
by snibgo
The file you uploaded, yuv_tiff.zip, doesn't seem to be a valid zip file.

Re: Crash opening YCbCr Tiff in x64

Posted: 2010-04-29T23:32:12-07:00
by foxyshadis
Not sure why, I created it in 7zip and can open it in regular zip software, but I uploaded another one created in windows explorer.

Re: Crash opening YCbCr Tiff in x64

Posted: 2010-04-30T08:09:02-07:00
by snibgo
Something is wrong with yuv.tif. Various programs can't open and display it. However,

convert yuv.tif yuf.jpg

works for me (IM 6.6.0-8 on Windows 7).

How did you create yuv.tif? If with IM, please supply the usual (the source image and exact command, IM version and platform).

Re: Crash opening YCbCr Tiff in x64

Posted: 2010-04-30T13:43:03-07:00
by foxyshadis
I'm on Win7 x64, using IM 6.6.1-6 2010-04-23 Q16 (no OpenMP). IM is one of the very few programs that can properly handle YCbCr in tiff. Some software (like XnView) converts the colors incorrectly, most won't open it at all.

It's created with ffmpeg, which added the capability in 2007:

ffmpeg -i sample.mp4 yuv.tif

That will create a tiff in the native colorspace. (Using -colorspace RGB would create a normal RGB tiff, but I need native to minimize cumulative rounding errors.) The crash only seems to occur on both windows x64 builds. All 32-bit builds convert it fine.