opieant
18th March 2009, 02:13
I am trying to develop a method of improving the quality of one video by using a higher-quality source as a reference, but have hit a bit of a snag. I am currently using color correction (for washed-out colors), chroma shifting, edge enhancement reduction, and adding a little bit of grain with the following:
#Correct reds/blues bleeding to the right
ChromaShift(C=-2,L=0)
#Some color improvement
Tweak(hue=0,sat=1.20,bright=3,cont=0.95)
#Soften H-edges (reduce edge enhancement), sharpen V-edges
UnFilter(50,-35)
#Shave a tiny bit off of remaining enhanced edges
WarpSharp(bump=64,blur=3,depth=128)
#Again, slightly differently
aWarpSharp(cm=1,depth=8.0)
#Add a bit of grain to the whole image
AddGrain(3,0,0)
The problem I end up with is that textures such as grass, dirt, and gravel are unnaturally smooth. This is due to an unknown type of filtering that was done on the lower-quality source prior to compression, not the effects of Unfilter, WarpSharp, and aWarpSharp. Increasing the value of stddev to about 40 for AddGrain() can help to make the textured areas look more detailed in comparison to the high-quality source, but it also makes the many larger, less textured (smoother) areas far too noisy.
Is there a way to use MaskTools or something similar to apply a filter to textured areas only?
Samples of the two sources I'm comparing can be grabbed at hxxp://www.filefactory.com/file/af6b24d/n/texture_samples_zip. DGIndex and DGDecode required, cpu=4 or cpu=6 recommended for DGDecode. :)
#Correct reds/blues bleeding to the right
ChromaShift(C=-2,L=0)
#Some color improvement
Tweak(hue=0,sat=1.20,bright=3,cont=0.95)
#Soften H-edges (reduce edge enhancement), sharpen V-edges
UnFilter(50,-35)
#Shave a tiny bit off of remaining enhanced edges
WarpSharp(bump=64,blur=3,depth=128)
#Again, slightly differently
aWarpSharp(cm=1,depth=8.0)
#Add a bit of grain to the whole image
AddGrain(3,0,0)
The problem I end up with is that textures such as grass, dirt, and gravel are unnaturally smooth. This is due to an unknown type of filtering that was done on the lower-quality source prior to compression, not the effects of Unfilter, WarpSharp, and aWarpSharp. Increasing the value of stddev to about 40 for AddGrain() can help to make the textured areas look more detailed in comparison to the high-quality source, but it also makes the many larger, less textured (smoother) areas far too noisy.
Is there a way to use MaskTools or something similar to apply a filter to textured areas only?
Samples of the two sources I'm comparing can be grabbed at hxxp://www.filefactory.com/file/af6b24d/n/texture_samples_zip. DGIndex and DGDecode required, cpu=4 or cpu=6 recommended for DGDecode. :)