View Full Version : Saturation/Color of xvid help
cdrips
14th January 2003, 02:27
Hi, I've been recently testing filters to sharpen my encodes. 1 thing I searched for were sharpen filters. WarpSharp, Msharp, and some blurs Convo3d and the like. I was wondering where I could find documentation on Warpsharp. I've searched through the forums and haven't been able to find any examples. Also, I had a question about the saturation of color on my encodes. On most of my encodes, the film color seems a little duller than the original. Is there a way to up saturation or fix this color issue? I have seen other encodes of the same movie. They seem to have such vibrant colors. Maybe it's my eyes playing tricks on me or there is I filter I haven't found using the search function. Can anyone help?
seewen
14th January 2003, 02:50
try filter TWEAK()
It's an extrenal plugin for Avisynth 2.0x, and Internal for 2.5 .
With this filter you can adjust "hue", "saturation", "contrast", "brightnest".
The plugin filter for visynth 2.0x is made by D.Graft ( if I remember well ;) ), so you could find it here : http://shelob.mordor.net/dgraft/
Fenris
14th January 2003, 05:18
Originally posted by seewen
try filter TWEAK()
It's an extrenal plugin for Avisynth 2.0x, and Internal for 2.5 .
With this filter you can adjust "hue", "saturation", "contrast", "brightnest".
The plugin filter for visynth 2.0x is made by D.Graft ( if I remember well ;) ), so you could find it here : http://shelob.mordor.net/dgraft/
Tweak has been built in sence 2.05 I think.
cdrips
14th January 2003, 05:38
O ok, I shall try tweak. Does xvid actually make the video color a little off, or is that because of my avisynth script. I was also wondering, a little off topic, where can I find documentation of warpsharp. I've searched and all I've found is a thread of a example of Warpsharp(30), not too sure what that does or if that's a high value or not. Also for unfilter with xvid, I read that with the mpeg2dec3 and lumafilter=-2, black blocks would look less ugly, can something like this also work for edge noise, or noise introduced by mpeg quants?
seewen
14th January 2003, 16:37
Originally posted by Fenris
Tweak has been built in sence 2.05 I think.
Maybe you are right.. As Avisynth 2.0x used Auto-login for plugin, I didn't knew exactly where it comes from ;-)
----------
@cdrips
You should try BlockBuster.dll. It's exactly what you are looking for I think ( about black blocks, etc..). http://www.jungleweb.net/~sansgrip/avisynth/
And about the effects of filters, the best is to make some test. Same parameters won't have the same effect on each movie ( depending of the motion, the colors, noisy or not, Anime, etc... ).
That's right that a "Sharpen" filter will never "blur" ;-). But some tweaks can gives very nice effect for Movie A, and same tweaks an ugly result for Movie B...
And specially about WarpSharp.dll . I have 3 WarpSharp.dll different. Each has different function/parameters. But I founded all three in Doom9 forum, as attachment or links ( but don't remember exactly ). The most complete Help-file I have is from WarpSharp.dll v 1004 Mod( for Avisynth 2.0x. http://ziquash.chez.tiscali.fr/ ).
included function of WarpSharp.dll:
WarpSharp() Xsharpen() UnsharpMask() UVTimingH() UVTimingV()
SmartSmoothHiQ() LoadAviUtlInputPlugin() Auto24FPS() AutoDeint()
FrameCache()
WarpSharp(depth=128, blur=3, bump=128, cubic=-0.6)
Description of the function
this is clone of VirtualDub Plug-In, warpsharp.vdf.
Description of the value
depth : depth of warp
blur : Number of times of blur.The processing will become slow if this value increases.If this value is not defined, the value is set to the minimum, 1.
bump : Threshold of uneavenness detection.It will become more sharpen effect if it increases.
cubic : Coefficient of warp vlue.There is no necessity of changing.
Xsharpen(strength=128, thresholdL=128, thresholdH=8, gamma=1.0)
Description of the function
this is clone of VirtualDub Plug-In, xsharpen.vdf?
1.Detect the luminance(minimum and the maximum) from adjoining 8 pixels.
2.The value where the absolute value from a center is smaller is chosen from the minimum value or the maximum.
3.Correct the luminance to the selected value.
Description of the value
strength : strength of this filter.
thresholdL, thresholdH : threshold
If the absolute value of "Description of the function 2." is within the limits of thresholdL to thresholdH, it processes.
gamma : like gamma correction value of "strength".
#Tips
If you set to Xsharpen(strength=?, thresholdL=?, thresholdH=0, gamma=0) and adjusts "strength" and "thresholdL", you can get the effect like VirtualDub-version.
UnsharpMask(strength=64, radius=3, threshold=10)
Description of the function
1.Calculate the value that blur of luminance.
2.From the subtraction of the luminance and value of "Description of the function 1.", calculate ingredient of the blur.
3.From coefficient(strength) and ingredient of the blur, adds to luminance.
Description of the value
strength : strength
radius : Range of blur process
threshold : threshold
Only the case is processed that absolute value of "ingredient of the blur" is larger than threshold.
UVTimingH( U, V, [True/False] )
Description of the function
Horizontal
UVTimingV( U, V, [True/False] )
Description of the function
Virtical
SmartSmoothHiQ(radius, amount, thresholdY, thresholdC, diffweight, dispblur)
Description of the function
a clone of the VirtualDub plug in.
Description of the value
default value : SmartSmoothHiQ(2, 256, 12, 12, 6, false)
LoadAviUtlInputPlugin()
Description of the function
Import the Plug-In of AviUtl
Auto24FPS(drop, threshold, border, mode, debug)
Description of the function
Clone of the Plug-In of AviUtl, Auto-24FPS.
Description of the value
default value : Auto24FPS(true, 24, 16, "", false)
drop : String "true" or "false".Frame drop processing(make fps to 4/5, 24fps if the clip was 30fps)
threshold : threshold
border : Range of circumference, non-judged
Range which Croped(Top, Bottom, Left, Right) with the specified border value.
Since it revalues in the case of odd number, made into even number, so field order is not reversed.
border=3 is similar to border=4.
border=0 becomes the same as border=2 with an exception.
( Crop(border, border, width-border*2, height-border*2) )
mode : ("" or "blend")@Double-izing of striped point
debug : (true or false)
AutoDeint(mode)
Description of the function
Automatical DeInterlace
Description of the value
default value : AutoDeint("")
mode : "motion"@motion detective
FrameCache(size, debug)
Description of the value
size : Specify the number of frames to cache(if you thought that processing of Auto24FPS is slow.).
ExampleFFrameCache(9).Auto24FPS(true,24,16,"",false)
!!!!About field order!!!!
In order to get a field order from Avisynth by GetParity(), specify Parity correctly at the time of Auto24fps and AutoDeint use.
Example of specifying clearly :
AssumeFrameBased(Bottom first)
AssumeFrameBased.ComplementParity(Top first)
Show the vlaue :
subtitle( last.GetParity() ? "TopFirst":"BottomFirst", font="MS UI Gothic" )
Acaila
16th January 2003, 10:06
Does xvid actually make the video color a little off, or is that because of my avisynth script.I usually find my encodes to have a slight hue shift to red/magenta when I don't use any filters. It's not much, but sometimes it annoys me, then I use Tweak to shift it a bit the other way again.
MaTTeR
16th January 2003, 14:15
Hey Acaila!
Long time no chat, good to see you back here :-)
I've been playing around with tweak lately to increase color saturation. What part of the script have you found tweak to work better? I've been placing it at the end before Limiter() and results seem ok for now.
Acaila
16th January 2003, 14:35
Hey MaTTer :D
I haven't been away, but I've been lurking mostly and hardly posting.
I've never really tested to see where Tweak works best in a script. Personally I'm using it as the first filter before everything else. After Crop that is. My reasoning for this is, that then the color is ok before anything else processes the clip (like resizing) instead of correcting it afterwards. But like I said, I don't really know what is better either.
ChristianHJW
16th January 2003, 16:07
Originally posted by Acaila I haven't been away, but I've been lurking mostly and hardly posting. .... good to see you're back mate !!
You need a new challenge mate ... i know -h's DivX3 --> MPEG4 conversion tool will set us all on fire again :D :D !! Looking forward to get my hands on it ...
sh0dan
16th January 2003, 16:19
Originally posted by Acaila
I've never really tested to see where Tweak works best in a script. Personally I'm using it as the first filter before everything else. After Crop that is. [...]
Personally I do the color/luma adjustments after everything else, because it's slightly faster, and doesn't produce any visual problems (for my eyes, anyway). There might be a slight advantage, when applying scaling funtions like gamma before filtering, because it could reduce the jumps created by gamma (or luma gain).
If you're using AviSynth 2.5 You might take a look at ColorYUV (http://www.avisynth.org/index.php?page=ColorYUV). It provides many ways of colorcorrecting. Also Histogram() (http://www.avisynth.org/index.php?page=Histogram) can give you good information on your luma distribution. Remember to always end your 2.5 scripts by calling Limiter() (http://www.avisynth.org/index.php?page=Limiter) - it crops out bad luma/chroma values, and thus helps compression.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.