Thread: Avisynth+
View Single Post
Old 7th October 2017, 08:53   #3653  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
Hello
I'm stabilizing shaky video with deshaker.
Converting it to 16-bit so I could reduce rounding errors.
Like this
Code:
Function YV12toRGB32(clip c)
{
  c.convertTo16bit()
  converttorgb64(matrix="Rec709")
  convertto8bit()
}

Function RGB32toYV24(clip c)
{
  c.ConvertTo16bit()
  ConvertToYUV444(matrix="Rec709")
  convertto8bit()
}

s = source()
s.yv12torgb32().dehsaker().RGB32toYV24()
I noticed bit difference on brightness.
It was clear it's caused by color convertion.
So I just typed
Code:
s.yv12torgb32().RGB32toYV24().yv12torgb32().RGB32toYV24().yv12torgb32().RGB32toYV24().yv12torgb32().RGB32toYV24()
Then this is the result
source - https://i.imgur.com/V3aioqT.png
converted - https://i.imgur.com/kddpb3i.png
Is it a bug or something? (Pictures are resized since it doesn't matter for what we're talking anyway.)

Last edited by bxyhxyh; 7th October 2017 at 10:23.
bxyhxyh is offline