Log in

View Full Version : Bit Depth using Avisynth


koliva
5th March 2009, 16:49
Hi everybody,

Is there any way to save my video using avisynth? Actually, I am looking for a way to save my video in 8 bit color depth because my input images are 8 bit and I don't need 24 bit. Whatever I do, everytime I saved my video 24 bit. Could you help me please? :thanks:

Mug Funky
5th March 2009, 23:00
immaavs should be able to help you. it can write gif files, so dropping the bottom few bits shouldn't be too much hassle.

there'd be no point asking why you're in 8-bit land would there?

Dark Shikari
5th March 2009, 23:02
"Writing 8-bit" is not a matter of "dropping the extra bits", because 8-bit images/video are paletted.

Mug Funky
5th March 2009, 23:10
i know. keeping it (too?) simple.

immaavs will still work, however, i can't seem to find dithering options. possibly it does it automatically, or maybe just doesn't use it?

koliva
6th March 2009, 06:48
i know. keeping it (too?) simple.

immaavs will still work, however, i can't seem to find dithering options. possibly it does it automatically, or maybe just doesn't use it?

I am sorry but I could't do it. When I look at the properties of my .avi file, I see that it is 24 bit. Whereas, my input image sequences are 8 bit grayscale images. Do I have to save my video 24 bit? Why? There should be an option somewhere. :confused::confused::confused:

Could you please somebody tell me this is impossible? And then I will completely change my ideas and I will save time.

krieger2005
6th March 2009, 09:49
I think it deppends on the codec you use if you can save your video in 8bit or not. So nothing to do with avisynth by itself. Most codecs save in 24bit (i think).

Wilbert
6th March 2009, 18:41
From the readme:
# saves to 8-bit color palette (BMP):
c = ColorBars().Trim(0,4) # RGB32
ImmaWrite(c.ConvertToRGB24, "cb", type="bmp", mode="Palette")
and some other options:
use_dither (default true). Dithering is used when reducing the number of colors. This can be done when specifying the colors option, or when using mode="Palette" (or when converting to a format which has 256 colors (like GIF)). When set to false, it will turn off dithering.

colors (default "the same as the input and what the output format permits" with a maximal of 256 colors). This option can be used to reduce the number of colors. Note that if you create an image sequence or an animation, it will save every frame using a distinct colorset (unless your source itself has already the specified number of different colors).

Wilbert
6th March 2009, 18:44
Sorry, i didn't read the last two posts ...
I am sorry but I could't do it. When I look at the properties of my .avi file, I see that it is 24 bit. Whereas, my input image sequences are 8 bit grayscale images.
Btw, if you are saving to an avi, you need to select a codec which supports 8-bit as krieger2005 said.