Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
7th December 2016, 02:24 | #2641 | Link |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
I'm getting some problems loading a transparent PNG (a logo) and add it on a video using overlay.
The alpha from the PNG seems to be read just fine, but it's the "24bit" of the full 32bit PNG itself that are read with lots of artefacts (mainly "blocks" not available in the original image). ImageSource and ImageReader both gives the same output. With regular AVS 2.6 the same PNG/overlay works as expected. Syntax: logo=imagesource("logo.png",pixel_type="rgb32") overlay(video,logo,mask=logo.showalpha()) |
7th December 2016, 08:23 | #2642 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,781
|
Of course, for most input formats they are just aliases of one single function. A difference might exist if you change the decoder, e.g. using DevIL or not.
Do you have samples of such wrong results (original image + wrong overlay result in a script)? I wonder where such issues appear, I could imagine in areas which should be completely transparent: Here the alpha channel may hide the fact that there are areas of full transparent color A next to full transparent color B, which would appear visibly if the transparency is incomplete by mistake. But then it may be rather in Overlay than in ImageSource. Just a wild guess: Alpha channels are usual rather in RGB formats and should not have coring applied, even when the overlay result is in YUV format. |
7th December 2016, 09:14 | #2643 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
Which Avisynth Plus version are you using? |
|
7th December 2016, 09:46 | #2645 | Link |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
I'm using r2294.
Original image: https://www.sendspace.com/file/ad7xdd This is the alpha (correct): http://116.imagebam.com/download/hau...2355/Alpha.png This is the image without alpha (wrong): http://115.imagebam.com/download/QWD...2359/Image.png Final result with overlay (wrong): http://116.imagebam.com/download/4mo...66/Overlay.png |
7th December 2016, 10:00 | #2646 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
|
|
7th December 2016, 13:48 | #2647 | Link |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
mp3dom, thank you for the bug report.
New build, r2333 with Overlay fix: http://www.mediafire.com/file/u44zj6...splus-r2333.7z |
7th December 2016, 15:27 | #2650 | Link |
Registered User
Join Date: Jul 2003
Location: Italy
Posts: 1,135
|
Setting pc_range=true, indeed, fixed the output in the right way, thanks!
Just asking: Is it right that when opening the png (either 32bit or forcing 24bit) with imagesource (without applying any overlay), the image is still blocky like in my previous example? |
8th December 2016, 01:52 | #2655 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
AVSMeter does not use the C interface.
__________________
Groucho's Avisynth Stuff |
8th December 2016, 03:59 | #2658 | Link |
Registered User
Join Date: Aug 2006
Location: Stockholm/Helsinki
Posts: 805
|
Suggestion to CombinePlanes: if source clip only has a Y plane and "source_planes" is not set, use the Y plane.
Also, if "planes" is set, why do we need "pixel_type"? Can't "pixel_type" be figured out automatically, or am I missing some case when it can't? |
8th December 2016, 16:05 | #2659 | Link | |
Registered User
Join Date: Jun 2010
Posts: 91
|
Quote:
Error parsing ArrayGet plugin parameters: unknown character 'a' Error parsing ArrayGet plugin parameters: unknown character 'a' Error parsing ArraySize plugin parameters: unknown character 'a' Error parsing BlankClip plugin parameters: unknown character 'a' Error parsing BlankClip plugin parameters: unknown character 'a' Error parsing BlankClip plugin parameters: unknown character 'a' Error parsing BlankClip plugin parameters: unknown character 'a' |
|
8th December 2016, 16:48 | #2660 | Link | |
Registered User
Join Date: Jan 2014
Posts: 2,314
|
Quote:
I have just tried 64 bit avspmod and it was producing me an exception and exited before start and was able to debug avisynth. After one more modification it works for me, those error-like warnings are still there of course. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|