Thread: Avisynth+
View Single Post
Old 19th September 2017, 11:41   #3625  |  Link
george84
Registered User
 
Join Date: Jan 2012
Posts: 104
How to convert RGB48 to YUV ?

Quote:
x = ImageSource("C:/Users/Walter/Documents/SMIL/BSG23/testsuite/OLED/ColorCheck/colorcheckerchart4kElleV4Big2.tif", use_DevIL = true, pixel_type = "RGB48")
z = ConvertToYUV444(x, matrix="Rec2020")
z = Info(z,size=100)
x
I use avisynth+ 32bit newest version and tested above script in AvsPmod newest version. It correctly displays picture. In info it says for x: colorspace= RGB48, Bitdepth = 16.

When doing output of z instead of x:

1. there is an error message in AvsPmod "Error trying to display the clip..."

2. When encoding with RipBot264 I get strange colors and the video shows only the left half (stretched) of original tif picture. In info it says for z: colorspace=YUV444P16

So I assume there is one problem in AvsPmod and another one in Avisynth+.

Edit1

Insert
Quote:
z = ConvertToStacked(z)
after ConvertToYUV444 it displays in AvsPmod. Whatever that means?

Last edited by george84; 19th September 2017 at 15:58. Reason: Edit1
george84 is offline