ФОРУМ

ФОРУМ



Поиск   Участники   Регистрация   Вход
Сегодня: 31.07.2026 - 04:52:51
Страницы:  1  

Correct Usage of ImageSource to keep alpha information

АвторСообщение

BillyBones

Постоянный житель


Статистика:
Сообщений: 8
Регистрация: 02.04.2008

Hi All, I am using ImageSource to open a series of png files and import them as an AVI into a custom conversion program. I want to retain the alpha channel information in the png files after passing through AviSynth. My current scrip is like this... ImageSource("file%04d.png", 1, 100 ) ConvertToRGB32() However, the avi generate from this has the alpha channel set to 0xff, not the original values from the png file. Is it possible to retain the alpha values from the png? Any help much appreciated. Thanks, Hando



Сообщение # 1 04.08.24 - 02:53:54
RE: Correct Usage of ImageSource to keep alpha information

Вишенька

Постоянный житель


Статистика:
Сообщений: 8
Регистрация: 03.11.2010

ImageSource doesn't support alpha (because the used devil lib doesn't). Use ImageMagick plugin:



Сообщение # 2 04.08.24 - 03:04:29
RE: Correct Usage of ImageSource to keep alpha information

Князь_Фарзой

Постоянный житель


Статистика:
Сообщений: 98
Регистрация: 16.08.2005

Thanks for that. The link for immaread620.rar is not working. Do you know of anywhere else I might be able to find this? TIA


-------
Летящий камень мхом не обрастает
Сообщение # 3 04.08.24 - 03:15:25
RE: Correct Usage of ImageSource to keep alpha information

koffey

Постоянный житель


Статистика:
Сообщений: 134
Регистрация: 07.05.2006

The link works for me. I will upload it tomorrow ...



Сообщение # 4 04.08.24 - 03:26:30
RE: Correct Usage of ImageSource to keep alpha information

butsya

Постоянный житель


Статистика:
Сообщений: 8
Регистрация: 06.10.2010

For Avisynth 2.5.5 I could never get the overlay trick to work with .png files, but with RGB32 .bmp + 1 alpha channel produced in photoshop its quite easy. After removing some features from a DVD menu, I used the following script to overlay an bitmap which removes the options and allows the rest of the animated menu to show through. I think the DEvil libraries are not used by default anymore (for .bmp not .png). It's an option (use_devil) # PLUGINS LoadPlugin("C:\PROGRA~1\GORDIA~1\DGMPGDec\DGDecode.dll") # SOURCE clip1 = mpeg2source("D:\01_Menu.d2v").converttorgb32() clip1Frames = Framecount(clip1) clip2 = ImageSource("D:\overlay.bmp", end=clip1Frames) # OUTPUT return Layer(clip1, clip2)



Сообщение # 5 04.08.24 - 03:31:40
RE: Correct Usage of ImageSource to keep alpha information
Следующая тема: Наш аквариум 62 литра! с новыми фотографиями!!!!
Страницы:  1  

Администратор запретил отвечать гостям на сообщения! Для регистрации пройдите по ссылке: зарегистрироваться


Участники