View Single Post
Old 27th October 2021, 23:55   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
Quote:
Originally Posted by johnmeyer View Post
2. A minor problem: mt_merge does not provide identical video to the original when merged with pure white. The script works despite this flaw, but I'd like to understand how to fix it.
It looks like "video" white is used, ie., Y=235; not Y=255
Same for "black" . Y=16, not Y=255

Code:
global source=AVISource("E:\fs.avi").ConvertToYV12.killaudio()

global BlackFrame = BlankClip( source, Color=$000000 )
global WhiteFrame = BlankClip( source, Color=$FFFFFF )
You can use expr("255", "128", "128") to make it full white in 8bit YUV or coloryuv(preset="TV->PC") , not sure which is faster, probably expr .
poisondeathray is offline   Reply With Quote