krieger2005
4th May 2004, 13:44
Hi,
i use a simple Filter to remove MPEG-Artifacts. The Source has a bad quality and the filter does a good job but there a problem.
The Filter search for "extreme white Pixel" or "extreme black Pixel" and generate an mask, where these "extreme Pixels" are white and the rest black. Now i blur the image and try to overlay it on th "extreme pixels".
Here the code:
mask3=Unfilter(120,120).coloryuv(autogain=true).GreyScale.Levels(170,1,171,0,255)
Overlay(last, sauber, 0, 0, mask3)
"last" is the source-movie
"sauber" is the blured movie
"mask3" the mask, which i make above
Now the Problem:
When i use:
# sauber is white
sauber=BlankClip(length=framecount, width=width, height=height,
\ pixel_type="YV12",fps=25,color=$FFFFFF)
the hole frame became littlebit white (hope you understand what i mean). Can someone give me a tip how i can blend "sauber" into "last" with a mask only some points (and not the hole frame).
i use a simple Filter to remove MPEG-Artifacts. The Source has a bad quality and the filter does a good job but there a problem.
The Filter search for "extreme white Pixel" or "extreme black Pixel" and generate an mask, where these "extreme Pixels" are white and the rest black. Now i blur the image and try to overlay it on th "extreme pixels".
Here the code:
mask3=Unfilter(120,120).coloryuv(autogain=true).GreyScale.Levels(170,1,171,0,255)
Overlay(last, sauber, 0, 0, mask3)
"last" is the source-movie
"sauber" is the blured movie
"mask3" the mask, which i make above
Now the Problem:
When i use:
# sauber is white
sauber=BlankClip(length=framecount, width=width, height=height,
\ pixel_type="YV12",fps=25,color=$FFFFFF)
the hole frame became littlebit white (hope you understand what i mean). Can someone give me a tip how i can blend "sauber" into "last" with a mask only some points (and not the hole frame).