Log in

View Full Version : TIF reading in ImageSource


rincy2000
26th March 2012, 06:31
I am trying to read TIF images that I wrote with ImageWriter, but all I get is

"Exception while processing ScriptEnvironment::ThrowError()"

I used the following command (reading from files000000.tif, files000001.tif, ....)

video=FFVideoSource(<some video file>)
audio=FFAudioSource(<same video file here>)

ImageSource("files%06d.tif", 0, video.FrameCount(), video.Framerate(), pixel_type="RGB24")

The exact same syntax works for JPG.

Any ideas? Maybe a problem with DevIL?

--
Rince

Gavino
26th March 2012, 10:27
There's a bug in ImageSource that causes an exception when trying to report a DevIL error.

See this post for an explanation and possible solutions to the DevIL problem.

rincy2000
27th March 2012, 06:37
Thx, Gavino. I didn't find that thread. Will try out Immaread ;-)

--
Rince

IanB
27th March 2012, 08:50
The bug is only with the reporting of an error. If ImageSource works it works correctly. If it has an error the message is corrupted.

ImageSource in Avisynth 2.5.8 does not have the problem, install it to see what the real error is. Running the Avisynth installer is trivial and is the easiest way to flip between revisions.