View Full Version : ImageReader / ImageSource is broken with TGA files
egalitarian
12th October 2009, 17:33
The ImageReader / ImageSource is broken with TGA files that had their flip bit set by the program that created them. It simply ignores that bit (byte 17 bit 5 in the header of the tga). That means that it'll read the TGA but sometimes depending on the program that created the image it'll be read upside down with no way of avisynth to be aware of that.
I also tried the CoronaSequence plugin which has proper reader for flip bit but it wasn't reading RLE encoded TGAs. Does anyone know a good universal way to read TGA files into avisynth?
Wilbert
12th October 2009, 19:59
Try ImmaRead.
edit: i see that they are actively developing the devil library again since a year or so. Perhaps i will look at it again some day ...
egalitarian
13th October 2009, 18:19
Try ImmaRead.
edit: i see that they are actively developing the devil library again since a year or so. Perhaps i will look at it again some day ...
Thanks. I tried the old e-male version of immaavs and it worked fine. The new 1.41 version seemed more complicated to use but I'll try it out also. It's worth having the newer imagemagick libraries. Do you know if 1.41 supports exr reading? That will be a nice one to have.
Wilbert
13th October 2009, 20:15
It's worth having the newer imagemagick libraries. Do you know if 1.41 supports exr reading? That will be a nice one to have.
Do you have an example exr file for me?
egalitarian
13th October 2009, 21:28
Sample EXR Images (http://download.savannah.nongnu.org/releases/openexr/openexr-images-1.5.0.tar.gz)
Wilbert
13th October 2009, 22:07
Apparently you need to install some additional stuff for exr support.
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=14763&p=51682&hilit=exr#p51682
It sounds complicated to get it to work and i want to add some other stuff first. If i do get it to work i will notify you.
egalitarian
14th October 2009, 00:49
Apparently you need to install some additional stuff for exr support.
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=14763&p=51682&hilit=exr#p51682
It sounds complicated to get it to work and i want to add some other stuff first. If i do get it to work i will notify you.
That will be really great. EXR is not that popular and it's really hard to find tools to automate tasks for that excellent format.
Archimedes
14th October 2009, 01:17
Does anyone know a good universal way to read TGA files into avisynth?
You can also try FFmpegSource2 (http://code.google.com/p/ffmpegsource/).
LoadPlugin("plugins\FFmpegSource2\ffms2.dll")
Import("plugins\FFmpegSource2\FFMS2.avsi")
FFImageSource("image.tga", colorspace="RGB32")
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.