Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th March 2013, 16:23   #1  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
MSU Color Enhancement with avisynth?

hi guys

Im trying to get this effect into avisynth.



Im using MSU colorenahcement (virtualdub plugin)
http://compression.ru/video/color_enhancement/index_en.html




The problem comes when I load the plugin to use into avisynth.

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
travolter is offline   Reply With Quote
Old 27th March 2013, 21:43   #2  |  Link
steptoe
Registered User
 
steptoe's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 360
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
steptoe is offline   Reply With Quote
Old 27th March 2013, 23:13   #3  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
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.

Last edited by travolter; 27th March 2013 at 23:46.
travolter is offline   Reply With Quote
Old 28th March 2013, 11:13   #4  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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.ph...76#post1371376
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 28th March 2013 at 11:27.
StainlessS is offline   Reply With Quote
Old 28th March 2013, 13:15   #5  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
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...
travolter is offline   Reply With Quote
Old 29th March 2013, 00:04   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
will take a look.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 29th March 2013, 03:40   #7  |  Link
LemMotlow
Registered User
 
Join Date: Jul 2011
Location: Tennessee, USA
Posts: 266
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.
LemMotlow is offline   Reply With Quote
Old 29th March 2013, 08:17   #8  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
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.

Last edited by travolter; 29th March 2013 at 08:25.
travolter is offline   Reply With Quote
Old 29th March 2013, 18:53   #9  |  Link
creaothceann
Registered User
 
Join Date: Jul 2010
Location: Germany
Posts: 357
Well, you can come somewhat close with this:

Code:
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)
creaothceann is offline   Reply With Quote
Old 30th March 2013, 20:10   #10  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
@creaothceann thanks for the tips
Levels & sat are always an option.. the approach could work.
travolter is offline   Reply With Quote
Old 30th March 2013, 21:09   #11  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
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:
Code:
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)
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 30th March 2013 at 21:17.
StainlessS is offline   Reply With Quote
Old 30th March 2013, 21:13   #12  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
Quote:
Originally Posted by travolter View Post
How can I get same effect into avisynth?

There.

Code:
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. - (And result is now what it should've been.)
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)

Last edited by Didée; 30th March 2013 at 23:07.
Didée is offline   Reply With Quote
Old 30th March 2013, 22:05   #13  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
Hint: ShowRed("YV12") is a lot faster than ShowRed().ConvertToYV12()
IanB is offline   Reply With Quote
Old 30th March 2013, 22:09   #14  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by IanB View Post
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.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 30th March 2013, 22:23   #15  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
You guys top-right, me bottom left.

__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 31st March 2013, 14:02   #16  |  Link
travolter
Registered User
 
Join Date: Apr 2009
Posts: 138
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
travolter is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.