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. |
![]() |
#1 | Link |
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
Looking for an "all-purpose" avisynth script
I've been converting DVD videos for a couple of years now, and I've used lots of different combinations of resize, deinterlace, denoise, etc. filters.
Because I don't want to spend (a lot of) time finetuning the avs script for each individual conversion, I tried creating some "standard" settings. This is what I currently use (relevant lines only): Code:
Mpeg2Source("H:\mymovie.d2v") TomsMoComp(-1,5,1) GaussResize(712,528,8,0,-0,-0,p=60) ColorMatrix(d2v="H:\mymovie.d2v") hqdn3d(2) TTempSmooth() Some (possible important) remarks: - I always encode to x264, mostly using crf 22, or sometimes crf 20 - quality is important, but also: decent conversion speed, and relatively small file size (say, about 1200 kbps) - TomsMoComp: when working with video that is clearly not interlaced, I skip this step, of course - GaussResize: evidently, the values are variable, depending on the source. Please note that I don't resize; I just use this for cropping... - ColorMatrix: not sure if I really need this, but I suppose it's fast, and it doesn't hurt So, my question: any chance I could improve this "standardized" script? Thanks a lot for your help! (BTW, I haven't found any threads related to standard avs settings, but if I'm mistaken, my apologies, and thanks for pointing me in the right direction) Last edited by bartel75; 19th May 2010 at 18:06. Reason: Additional info |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,390
|
I know of exactly ONE script does fit all possible cases.
Code:
Return( last )
__________________
- 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!) |
![]() |
![]() |
![]() |
#3 | Link | |
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
Quote:
![]() What I meant: I don't want to fiddle with the settings each time I encode a new video. Of course, if I see a video that is (for example) extremely grainy, I would adjust the settings accordingly. But most videos (up to now) were regular PAL DVDs (movies), with the occasional exception of some old B&W footage from the 50s or 60s. One specific example: I ALWAYS use TTempSmooth(), but maybe you guys think there's a filter that does the same, does it faster, or gives better quality without a severe time penalty? |
|
![]() |
![]() |
![]() |
#4 | Link |
Guest
Join Date: Jan 2002
Posts: 21,906
|
Nobody here is going to support a quest for a "standardized script" ignoring the specifics of the source material.
If you are asking for suggestions for your posted script, then you will need to provide a sample of the source material it is to be used with. |
![]() |
![]() |
![]() |
#5 | Link | |
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
Quote:
Perhaps I could ask some questions that can be answered in a general sense.
I hope I'm getting my message across a little better this time... BTW: the reason I'm not talking about the "specifics of the source material" is the following: I am trying to find a way to convert videos without having to come to the forum each time I'm doing a new encode. You guys probably have better things to do, and I want to find a way to work things out myself. But I'm getting a little overwhelmed reading about (for example) all 20 deinterlace filters mentioned on avisynth.org, let alone testing them one by one, repeating the proces for each new encode I'm starting. Could anyone at least have their say about my two specific questions above (TS / colormatrix) ? Thanks in advance! |
|
![]() |
![]() |
![]() |
#6 | Link |
Registered User
Join Date: Apr 2008
Posts: 418
|
The man comes to Doom9 for "staightforward" answers.
![]() Last edited by Gser; 19th May 2010 at 21:06. |
![]() |
![]() |
![]() |
#7 | Link | |
Actually in reserve
Join Date: Oct 2004
Posts: 1,605
|
Quote:
Problem is, avisynth is complex (and needs scripting)! Either you do not want to script and try to use a GUI which wraps these filters in something you can manage, either you want full control and have to script. What I mean by script is wrapping one filter after another and entering manually parameters to tune the filter/function to the desired effect; many filters, many parameters. So as Didée as pointed out: "Anything more than that, and it won't be all-purpose". At this point I can only point you to a very useful (IMO) thread that will give you what usual filters are used by some (estimated) members of this forum. Up to you to read/compare test these ressources. But, it will not give you a all-in-one / all-purpose solution! It is called what are your current go-to filters: http://forum.doom9.org/showthread.php?t=149919 Did
__________________
Having a problem with AutoGK? Read & use the FAQ & MORE FAQ first Want to exchange on AutoGK? try doom10.org In reserve (inactive) for an undefined period of time. |
|
![]() |
![]() |
![]() |
#9 | Link | |
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
Quote:
Denoise: good point. I should probably get my foot off the gas pedal there! Thanks for your input... |
|
![]() |
![]() |
![]() |
#10 | Link | ||
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
Quote:
![]() Quote:
![]() Thanks for the link! |
||
![]() |
![]() |
![]() |
#11 | Link | |||||
Guest
Join Date: Jan 2002
Posts: 21,906
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
|||||
![]() |
![]() |
![]() |
#12 | Link | |
Derek Prestegard IRL
![]() Join Date: Nov 2003
Location: Los Angeles
Posts: 5,980
|
What neuron2 says here is key:
Quote:
![]() ~MiSfit
__________________
These are all my personal statements, not those of my employer :) |
|
![]() |
![]() |
![]() |
#13 | Link |
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
(temporal smoothing) My reasoning, based on the info found on the net: TS greatly helps compressibility, without introducing any (obvious) artifacts to the final video. To my eyes, at least... Please do correct me if there's something I forgot to take into account...
(ColorMatrix) From the filter description on avisynth.org: "ColorMatrix corrects the colors of MPEG-2 streams of dvds." As I'm working with exactly these streams all the time, it sounds like a no-brainer to me. What I couldn't find on the net though: maybe 80% of mpeg streams are already perfectly fine, and this filter has no obvious advantage? I agree that denoising questions cannot be answered in a simple way. Luckily for me, I can do some tests, and just compare the different results myself... Blue_MiSfit, I'll follow that advice. I'm just left with the two filters (ts & colormatrix) that seem to be 'universal'. So my remaining 'specific' question: Why not use ts & ColorMatrix all the time? What would be a situation where it's not recommended? ColorMatrix ensures that my colors are never off, and ts ensures better compressibility, without any major disadvantages. Right? (I guess you guys will say 'wrong', but I'm curious about the specifics ![]() For the record, my main sources: this forum, and the avisynth website. Maybe there's an important source of info out there that I don't know about? |
![]() |
![]() |
![]() |
#14 | Link |
Registered User
Join Date: Nov 2009
Posts: 2,335
|
hello bartel75. As you see Im newer than you, but I might have spent more time reading these pages and others as well, so I throw ya some tips
![]() Colormatrix must be used only if your source colors have the wrong type. You check by mpeg2decode (info=1) I think. Note SD is 601, HD is 709. If you use hints=true then it will automatically read if a conversion is needed and fix it accordingly, but as you see, there are exceptions where there is no tag to read from, and you must eye-check yourself. But normally is right. what is ts? temporal smoothing? Id only use a strong temporal if its temporal stable source (no shaking, not heavy action,no grain(?)), if not a low temporal should be enough.
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread |
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Apr 2008
Posts: 418
|
Quote:
PS. UnDot is a good filter for reducing the file size without loosing a lot of visual appeal. (Much better alternative than all that denoising anyways.) Last edited by Gser; 20th May 2010 at 17:10. |
|
![]() |
![]() |
![]() |
#19 | Link | |
Actually in reserve
Join Date: Oct 2004
Posts: 1,605
|
Hi,
Up to you to build or not your credibility. Quote:
While we are on the subject : * use of remove grain() (spatial) from weaker to stronger: mode1 => mode2 ... * use of degrainmedian() spatio/temp, weaker to stronger: mode5 => mode4 => and so forth.. I prefer dgm/mode5 to removegrain for hot pixels, kind of all purpose; my opinion only ![]() Did
__________________
Having a problem with AutoGK? Read & use the FAQ & MORE FAQ first Want to exchange on AutoGK? try doom10.org In reserve (inactive) for an undefined period of time. |
|
![]() |
![]() |
![]() |
#20 | Link | |
Used Registerer
Join Date: Mar 2009
Location: Brussels
Posts: 15
|
Quote:
![]() I always had trouble with Undot's extensive list of exotic parameters! On a serious note: degrainmedian sounds like a good idea, too. I'll run some tests... |
|
![]() |
![]() |
![]() |
Tags |
avisynth, filters |
Thread Tools | Search this Thread |
Display Modes | |
|
|