8th February 2016, 15:06
|
#10
| Link
|
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quote:
Originally Posted by age
The conversion of that script should be :
Code:
c = core.fmtc.resample (clip=c, css="444",kernel="point") #ConvertToYV24(chromaresample="point", interlaced=false)
r=core.fmtc.resample (clip=c,kernel="point",sw=0, sh=-1) #MergeChroma(PointResize(width, height, 0, 1))
c=core.std.ShufflePlanes(clips=[c,r], planes=[0, 1, 2], colorfamily=vs.YUV) #
c = core.fmtc.matrix (clip=c, mat="709", col_fam=vs.RGB) #ConvertToRGB32(matrix="rec709", interlaced=false)
c = core.fmtc.matrix (clip=c, mat="709", col_fam=vs.YUV) #
c = core.fmtc.resample (clip=c, css="420",kernel="point") #ConvertToYV12(chromaresample="point", interlaced=false)
c = core.fmtc.bitdepth(clip =c, bits=8) #
For compressing full scale YV12 sources using expr:
Code:
bit=2**c.format.bits_per_sample-1
c=core.std.Expr(clips=c, expr=[" {bit} x {bit} / 0.85882352941 * 1 / 0.06274509803 + * ".format(bit=bit)," {bit} x {bit} / 0.50196078431 - 0.87843137254 * 1 / 0.50196078431 + * ".format(bit=bit)," {bit} x {bit} / 0.50196078431 - 0.87843137254 * 1 / 0.50196078431 + * ".format(bit=bit)])
|
Brilliant. Thanks for that.
__________________
Nostalgia's not what it used to be
|
|
|