Posts: 139 
	Threads: 8 
	Joined: 2015 Mar
	
 Thanks: 37 
	Given 73 thank(s) in 34 post(s)
  
Country:   
	 
 
	
	
		You can try my imagej macro. 
https://fanrestore.com/thread-2581.html
If you aren't interested at looking at the code just scroll to the bottom and download the custom imagej.zip and then watch the plugin tutorial to get an idea of how to use it.
	  
	
	
	
	
 
 
	
	
	
		
	Posts: 193 
	Threads: 2 
	Joined: 2017 Dec
	
 Thanks: 12 
	Given 243 thank(s) in 88 post(s)
  
Country:   
	 
 
	
	
		Press D button and look at the difference between sources. It helps to find the cause.
	 
	
	
	
	
 
 
	
	
	
		
	Posts: 360 
	Threads: 40 
	Joined: 2015 May
	
 Thanks: 124 
	Given 117 thank(s) in 56 post(s)
  
Country:   
	 
 
	
		
		
		2019-06-30, 12:08 PM 
(This post was last modified: 2019-06-30, 12:08 PM by Colek.)
	
	 
	
		It seems that one of sources could be slightly tiled compared to other one, but I am unable to use  angle1 parameter?
 Code: Avisynth open failure: 
OverlayConfig.Angle1 is equal to 1 but must be greater or equal to 360 
(!Final Overlay.avs, line 3)
 
But I have in script  angle1=0.3?
	  
	
	
	
	
 
 
	
	
	
		
	Posts: 193 
	Threads: 2 
	Joined: 2017 Dec
	
 Thanks: 12 
	Given 243 thank(s) in 88 post(s)
  
Country:   
	 
 
	
	
		The latest version of the plugin has a known bug in the validation of angle arguments, use previous one.
	 
	
	
	
	
 
 
	
	
	
		
	Posts: 16 
	Threads: 2 
	Joined: 2017 Nov
	
 Thanks: 0 
	Given 2 thank(s) in 2 post(s)
  
Country:   
	 
 
	
	
		Hi there 
I'm trying to do what I think should be a straight forward overlay of an OM WEB-DL and BD. I started with the simple code and didn't really change much:
 Code: OM=DGSource("E:\Overlay\OM.dgi").Trim(24, 0, pad=false) 
WS=DGSource("E:\Overlay\WS.dgi").crop(0, 138, 0, -138) 
 
OverlayEngine(OM.ConvertToY8(), WS.ConvertToY8(), configs=OverlayConfig(subpixel=3), statFile="E:\Overlay\overlay.stat", editor=false) 
 
#OverlayEngine(OM.ConvertToY8(), WS.ConvertToY8(), configs=OverlayConfig(subpixel=3))  
#OverlayRender(OM.ConvertToYV24(), WS.ConvertToYV24(), debug=true) 
#ConvertToYV12()
  
When I open this up in VirtualDub2, it generates a statFile, but I'm not sure if it's done generating, is there a way to check this?
 ![[Image: Stat.jpg]](https://i.postimg.cc/Kz0zLqv7/Stat.jpg) [url=https://postimg.cc/2bBrNxW3][/url]
 
I cannot see any visible difference in alignment, how would I get 100% alignment or is my statFile fine?
 
How would I match the output to the BD colors?
 
Thanks, would appreciate your answers.
	  
	
	
	
	
 
 
	
	
	
		
	Posts: 16 
	Threads: 2 
	Joined: 2017 Nov
	
 Thanks: 0 
	Given 2 thank(s) in 2 post(s)
  
Country:   
	 
 
	
	
		Edit: I can't seem to edit posts, but the last one has been resolved.
	 
	
	
	
	
 
 
	
	
	
		
	Posts: 16 
	Threads: 2 
	Joined: 2017 Nov
	
 Thanks: 0 
	Given 2 thank(s) in 2 post(s)
  
Country:   
	 
 
	
		
		
		2019-09-19, 02:09 PM 
(This post was last modified: 2019-09-19, 02:22 PM by JackReacher.)
	
	 
	
		4K SDR WEB-DL downscaled to 1080p:
 
4K UHD matched to 4K WEB-DL and downscaled to 1080p:
 
Code: ffvideosource("E:\Overlay\UHD.mkv").crop(0, 276, 0, -276).Trim(0, 168184, pad=false) 
z_ConvertFormat(pixel_type="YUV420P10",colorspace_op="2020ncl:st2084:2020:l=>709:709:709:l", dither_type="none") 
UHD=last 
WEB1=ffvideosource("E:\Overlay\WEB.mkv").Trim(26, 0, pad=false).crop(0, 276, 0, -276) 
WEB=WEB1.Trim(0, 168184, pad=false) 
 
Adjusted=UHD.ColorAdjust(UHD, WEB, dither=0.5).Spline64Resize(1920, 804)
 
Hi there so I'm trying to match this UHD to a 4K SDR WEB-DL. There is still a somewhat noticeable difference between the two. How can I get a more accurate result that will match the reference?
 
I don't fully understand the color conversions that take place in the AutoOverlay function. How do I keep a 10 bit workflow thereby preserving as much color information as possible? 
 
Any feedback would be appreciated!
	  
	
	
	
	
 
 
	
	
	
		
	Posts: 193 
	Threads: 2 
	Joined: 2017 Dec
	
 Thanks: 12 
	Given 243 thank(s) in 88 post(s)
  
Country:   
	 
 
	
	
		Using plugin  https://github.com/jpsdr/plugins_JPSDR/releases
Code: ffvideosource("E:\Overlay\UHD.mkv").crop(0, 276, 0, -276).Trim(0, 168184, pad=false) 
ConvertYUVtoLinearRGB(Color=0, OutputMode=2, OOTF=false, fullrange=true) 
z_ConvertFormat(pixel_type="YUV420P10", colorspace_op="rgb:linear:2020:f=>709:709:709:f", dither_type="ordered", width=1920, height=804, resample_filter="spline36") 
UHD=last 
 
WEB=ffvideosource("E:\Overlay\WEB.mkv").Trim(26, 0, pad=false).crop(0, 276, 0, -276).Trim(0, 168184, pad=false) 
 
UHD.ColorAdjust(UHD, WEB, dither=1)
 You are able to use YUV420P16 instead of YUV420P10.
	  
	
	
	
	
 
 
	
	
	
		
	Posts: 2,740 
	Threads: 49 
	Joined: 2015 Jan
	
 Thanks: 1773 
	Given 988 thank(s) in 630 post(s)
  
	 
 
	
	
		Isn't the SDR version home made? ie a fan thing?
	 
	
	
	
	
 
 
	
	
			deleted user  
			
				Unregistered 
				
				
			
	 
	
		
 
Thanks:  
	Given  thank(s) in  post(s)
  
	 
 
	
	
		 (2019-09-19, 10:29 PM)Stamper Wrote:  Isn't the SDR version home made? ie a fan thing? 
It's a WEB-DL from an official source afaik.
	  
	
	
	
	
 
 
	 
 |