PDA

View Full Version : Before I really join the Avisynth-side....


bananacreamandpeca
14th November 2006, 02:26
..I have this last question ;)


I want to use the praised avisynth and flters to correct some existing AVI-videos I have.
IE. adjust the color, de-noise, de-interlace, crop teh video etc.
And then I want to re-encode these vids using the x.264-codec.

So whats the best approach to accomplisch this task?

Do I have to use VDubMod+Avisynth, open up the AVI's, toy around with the avisynth-filters
and when I'm done I could start re-encoding using my favorite codec.
But vdub does not support the CLI-x264 codec because of -vfw support in the CLI-x264 (?)

So I thought the script I generated when playing around with VDubMod and the Avisynth-filters
could probably be saved and then re-opened in for instance MeGUI ?
To finally start the filtering/re-encoding of the videos (?)
Is this correct? Am I making any mistakes?

I hope this all makes sense to where I'm getting at.
I like some feedback as to whether my approach is OK.
Or if you guys could suggest some other/better approach ?

Richard Berg
14th November 2006, 02:56
http://forum.doom9.org/showthread.php?t=115506

rfmmars
14th November 2006, 05:37
This is how I do it. First get AVS-p Avisynth editor. Download VirtualDubMOD or VDmpeg2 plus the lastest Virtualdub because AVS-p has a problem sometimes opening the first two VD(xxx).

Choose one of the three to open the clip. Add a deinterlacer to the filter box if interlaced.......Demux & frameserve out as c:\1.vdr.avi. This way you don't have to change your AVS-p scripts each time you do another clip.

Open AVS-p and use HDRagc filter,and add any thing else you want. Setup Virtualdub as your editor, hit F6 from AVS-p, choose a codec or frameserve out again. That's it.

Richard
photorecall.net

bananacreamandpeca
14th November 2006, 22:31
OK. so I installed AVs-p :thanks:
And yes the idea is great!

But now I come to the conclusion I need filters!
I know there are loads of filters out there. Avisynth has its own filters.
And you can download filters as plugins.

The only problem I have now is, I dunno wich filters to use
and how to use them.
I mainly wanna start off with:

*de-interlace
*resize
*crop a bit
*de-noise (all kinds of noise, I found the denoise-howto by doom9, but it uses
mostly other or avisynth own filters other than third party and maybe its outdated)
*sharpen
*brightness/contrast.

Pffff. where do I start?
I also do not know how all the different plugins and avisynth-filters use the numeric values and how to script them!


Thanks for any help. I just dont know wich plugin/avs-filter to use for wich task

qwerpoi
14th November 2006, 23:21
OK. so I installed AVs-p :thanks:
And yes the idea is great!

But now I come to the conclusion I need filters!
I know there are loads of filters out there. Avisynth has its own filters.
And you can download filters as plugins.

The only problem I have now is, I dunno wich filters to use
and how to use them.
I mainly wanna start off with:

*de-interlace
*resize
*crop a bit
*de-noise (all kinds of noise, I found the denoise-howto by doom9, but it uses
mostly other or avisynth own filters other than third party and maybe its outdated)
*sharpen
*brightness/contrast.

Pffff. where do I start?
I also do not know how all the different plugins and avisynth-filters use the numeric values and how to script them!


Thanks for any help. I just dont know wich plugin/avs-filter to use for wich task
First of all, learning Avisynth is pretty straightforward, but not instantaneous, it will take a little while before you feel really comfortable making a script.

As far as good filters are concerned, I believe you can take a look at a script generated automatically by MeGUI if you have it installed, it uses pretty up to date filters. Off the top of my head, here's a list for you to search and read more about:

de-interlace: TIVTC
resize: LanczosResize or Lanczos4Resize (internal)
crop: Crop (internal) - use AvsP's crop editor
de-noise: RemoveGrain, VagueDenoiser, others...
sharpen: LimitedSharpen, SeeSaw (a little hard to use)
brightness/contrast: Levels, Tweak (both internal) - use AvsP user sliders to help with determining values

Again, you should do a lot of reading of the Avisynth docs or on doom9's forums, if it seems like too much work, you might prefer simply using MeGUI's automatic script (I don't have any experience with it myself).

Oh, and just so you know, it's spelled AvsP (kind of like Aliens vs Predator), although mispelling it doesn't really bother me.

bananacreamandpeca
15th November 2006, 00:07
Thanks ;)
Means I will have to use the search extensively.

I'm using AVS-p now and tried entering the Levels-filter to a script.
The problem I have now is I do not know how to enter
min/max values correctly for each setting.
Levels (0,0,0,0)
To produce a working slider in AVS-p/preview.
I tried the avisynth dialog that explains the levels-command.
But its like algebra, I do not understand what is being said.
Every value has its own range I understand. And yet I cant enter the correct value to get
a proper slider.

And i'm afraid to ask about the different color-formats and that you have to convert rgb into yuyu or something,
in order to use x and what ranges are correspond to wich format pc-tv etc. omg.

foxyshadis
15th November 2006, 09:16
To create a slider, just use the menu command, "Insert user slider". :p Using the syntax directly is more of an advanced shortcut, by those who've been using it long enough, but most of avsp's features can be managed via the edit menu.

Do you have photoshop, gimp, photofiltre, or basically any other mid-to-advanced image editor? If so, you can open something in it, use its gui levels command, and play around with the five variables until you feel somewhat comfortable in what they do. Then come back and tweak it some. Although avsp makes previewing faster, it's not real-time at all, and avisynth can get very frustrating when you have no idea how to use a filter.

Btw, total passthrough processing is:
Levels(0,1.0,255,0,255)
So you can start there, and tweak the ranges.

bananacreamandpeca
16th November 2006, 00:47
Thanks for you rinfinite patience. Ive been reading and
trying things for 2 weeks and still no concrete video editing done.
Makes me pretty frustrating.

But I got the slider working!

bananacreamandpeca
18th November 2006, 05:42
To create a slider, just use the menu command, "Insert user slider". :p Using the syntax directly is more of an advanced shortcut, by those who've been using it long enough, but most of avsp's features can be managed via the edit menu.

Do you have photoshop, gimp, photofiltre, or basically any other mid-to-advanced image editor? If so, you can open something in it, use its gui levels command, and play around with the five variables until you feel somewhat comfortable in what they do. Then come back and tweak it some. Although avsp makes previewing faster, it's not real-time at all, and avisynth can get very frustrating when you have no idea how to use a filter.

Btw, total passthrough processing is:
Levels(0,1.0,255,0,255)
So you can start there, and tweak the ranges.

Hi,

I'm using "Tweak" now to set the contrast.
I used irfanview/adjust colors to experiment and came up with a contrast of +20
(irfanview slider ranges from -127 to +127)
How should I correctly enter this in the AVS-Tweak command variable?

Thanks for your patience. Much appreciated.