View Full Version : MSU Color Enhancement with avisynth?
travolter
27th March 2013, 16:23
hi guys ;)
Im trying to get this effect into avisynth.
http://thumbnails104.imagebam.com/24576/ac4f30245756982.jpg (http://www.imagebam.com/image/ac4f30245756982) http://thumbnails108.imagebam.com/24576/0a03b7245757287.jpg (http://www.imagebam.com/image/0a03b7245757287)
Im using MSU colorenahcement (virtualdub plugin)
http://compression.ru/video/color_enhancement/index_en.html
http://thumbnails105.imagebam.com/24576/6756ce245757373.jpg (http://www.imagebam.com/image/6756ce245757373)
The problem comes when I load the plugin to use into avisynth.
http://thumbnails106.imagebam.com/24576/f007bc245757473.jpg (http://www.imagebam.com/image/f007bc245757473)
The plugin load but it gives an error when I add arguments to the function. For example I write MSUcoloenhancement(0,0,7,0,0) and an error of "invalidad arguments" appear.
Questions:
1) Anyone knows the valid arguments to add into MSUcoloenhancement() ?
2) How can I get same result using avisynth filters?
thank for the replies :)
steptoe
27th March 2013, 21:43
Try this link, somebody else was interested in MSU filters and what they did to get them to work
http://forum.videohelp.com/threads/284690-Virtualdub-filters-in-avisynth-faster-How-to-use-them
travolter
27th March 2013, 23:13
Thanks for the help.
At moment no success. I tried to "Save processing settings" and read the arguments for the MSU Color Enhancement filter.. but they are not written there.
Anyway Im noticing that these virtualdub filters are not optimized for realtime and loading them into avisynth with RGB mode consume too much CPU power.
I hope that someone could post an idea about how to do that with avisynth plugins.
StainlessS
28th March 2013, 11:13
I've looked at MSU filters before and found that they quite often set some parameters,
only in the GUI, save settings does not save everything and as there is no GUI in Avisynth,
so you cannot alter the missing ones. I posted something about this for (I think) 'MSU Old Cinema'.
EDIT: Here
http://forum.doom9.org/showthread.php?p=1371376#post1371376
travolter
28th March 2013, 13:15
thanks stainlessS
Im reading MSU filters propieties and I notice that ones read
"Filter supports VirtualDub job control, so it is usable in AviSynth"
MSU Color Enhancement dont say nothing about job control... so maybe its not Avisynth friendly...
StainlessS
29th March 2013, 00:04
will take a look.
LemMotlow
29th March 2013, 03:40
Many VirtualDub plugins are OK with Avisynth, but many are not. Several MSU plugins are among those that are not Avisynth friendly. I don't use their filters in VirtualDub any more. anyway; their settings aren't saved in vcf files, and frankly I don't think they work so well that I'm willing to put up with the inconvenience.
travolter
29th March 2013, 08:17
Thanks StainlessS and LemMotlow. Maybe use the MSU filter into avisynth will be difficult-
Anyway... if MSU cannot be used into avisynth.
How can I get same effect into avisynth?
The plugin seems to reduce brightness on the dark zones and preserve the very lighty and white ones.
I tested in the past with highlightlimiter() http://forum.doom9.org/showthread.php?p=1574765#post1574765 but the effect is not the same as the MSU plugin.
creaothceann
29th March 2013, 18:53
Well, you can come somewhat close with this:
StackHorizontal(ImageReader("1.png", 0, 0).ConvertToYUY2.Levels(0, 0.25, 255, 0, 255).Tweak(sat=0.4),
\ ImageReader("2.png", 0, 0).ConvertToYUY2)
(Btw. AvsPmod > AvsP)
travolter
30th March 2013, 20:10
@creaothceann thanks for the tips ;)
Levels & sat are always an option.. the approach could work.
StainlessS
30th March 2013, 21:09
Suggest Coring=false if using levels.
Had a look at the MSU filter, no go, as you say, it outputs nothing but the name of the filter, not much use at all.
I Installed the VirtualDub frameserver, exec auxsetup.exe.
Started VD frameserver, accept default frameserver name. Saved output file as "vdtest.avi".
Created Test.avs containing line:
Avisource("D:\AVS\vdtest.avi")
Start VirtualDubMod (I use multiple versions of VDub). Load Test.avs into VDMod.
Works fine. :) (although might be simpler to edit in VD, save and load into Avisynth)
Didée
30th March 2013, 21:13
How can I get same effect into avisynth?
There.
imagesource("1.png")
red = showred("YV12")
green = showgreen("YV12")
blue = showblue("YV12")
red2 = red.mt_lut("x 3 ^ 255 2 ^ /")
green2 = green.mt_lutxy(red, "x y 2 ^ * 255 2 ^ /")
blue2 = blue.mt_lutxy(red, "x y 2 ^ * 255 2 ^ /")
mergergb(red2,green2,blue2)
In plain english: take picture, extract red channel. Filter picture with extracted red channel. Filter again with extracted red channel.
_____
edit: script corrected, as wisely suggested below. :o - (And result is now what it should've been.)
IanB
30th March 2013, 22:05
Hint: ShowRed("YV12") is a lot faster than ShowRed().ConvertToYV12()
Gavino
30th March 2013, 22:09
Hint: ShowRed("YV12") is a lot faster than ShowRed().ConvertToYV12()
It's also more correct here, as it will preserve the 0-255 range instead of converting to 16-235.
Didée
30th March 2013, 22:23
You guys top-right, me bottom left. :D
http://www.cheesebuerger.de/images/smilie/boese/a010.gif
travolter
31st March 2013, 14:02
thanks a lot for the help guys!! The results are perfect now with the didée script + fixes ;)
I can say bye to the MSU filter :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.