View Full Version : AviSynth Q&A
Wilbert
12th May 2002, 00:34
Most of you know that a lot is happening lately regarding AviSynth. Many plugins and filters were added, compressed audio support, better doc. support and AviSynth got its own website www.avisynth.org (http://www.avisynth.org). The AviSynth Q&A has moved to that website, it can be reached at AviSynth Q&A (http://avisynth.org/mediawiki/AviSynth_FAQ).
This site is made with Wiki (http://tavi.sourceforge.net/) (a kind of html for lazy people), such that everyone can contribute to www.avisynth.org (http://www.avisynth.org) by updating docs, adding nice scripts and more. If you want to learn Wiki you should have a look at the command summary (http://tavi.sourceforge.net/FormattingRules) and practice these rules in the sandbox (http://tavi.sourceforge.net/SandBox).
If you want to add or change something to the FAQ, please respond to this thread (also in the case you decided to make the changes yourself). Do NOT use this thread for discussion of specific Avisynth problems you may have. Post those in a separate thread. This thread is for suggesting new FAQs and discussing existing ones.
If you got any problems using AviSynth please read the troubleshoot page (http://www.avisynth.org/index.php?page=Troubleshooting) first before posting in this forum!
dividee
19th May 2002, 17:54
Edited Q6:
Added a link to the avisynth tutorial and a notice that reading the doc is mandatory before posting.
Wilbert
24th May 2002, 17:25
Corrected Q13.3:
How to read import mpeg2-files in AviSynth.
Removed Q36:
That was about the mpeg2enc.dll plugin, that had nothing to do with AviSynth.
Added Q35:
Q35: When i try to use SpatialSoftenMMX, it crashes in VirtualDub ?
A: You probably used this filter before resizing. Apperently SpatialSoftenMMX doesn't like resolutions that cannot be divided by 8 or 16. So if you use it after resizing it works, of course.
Rasqual
19th June 2002, 17:21
Q1:
http://www.lukesvideo.com/avisynth.html
Q9:
http://www.lukesvideo.com/frameserving.html
Wilbert
19th June 2002, 17:54
Thanks, I changed them. I also changed Q21: adding references to the "Smoother HiQ(uality) plugin" of Klaus Post (Shodan) and the "ImageSequence plugin" of Bzzz2.
Wilbert
29th June 2002, 18:14
Changed Q2, Q21 and Q27.
Q2: added:
There is also a version made by Poptones http://personal.ayrix.net/~poptones/avisynth.zip. There is a command which enables you to average multiple captures reducing noise and keeping detail. For a description see: http://arstechnica.infopop.net/Open...65&m=4020952194.
Q21: added the following plugins:
[list=1]
MergeLuma/MergeChroma plugin (by Klaus Post)
Soften/sharpen plugin (by Tom Barry)
MJPEGcorrect plugin
[/list=1]
Q27:
Pointer to the newest package containing VDub scripts called vdub_filtersv14.zip.
poptones
4th July 2002, 18:12
If you point people instead at the latest (avisynth2) project at sourceforge they can get the latest version with the "poptones" stuff in it. I don't mind hosting it there, and it'll remain for the folks who know that resource, but it may not always be the freshest version.
Wilbert
5th July 2002, 14:06
Thanks, I changed it (see Q2). I also added some external plugins in Q21.
pepsimaxx
18th July 2002, 00:47
Hi Wilbert,
Thanks alot for ur (and others?) hard work on this Q&A. I just wanted to post some constructive suggestion.
Could u make the questions appear in bold? That way it's easier to scroll down the page and find the "question" that is related to ur problem.
Don't take it the wrong way, it's meant in a positive way. :)
dividee
18th July 2002, 02:01
Nice suggestion. :)
Wilbert
22nd July 2002, 18:25
Changed Q21: added some new plugins and explanation.
Added Q40:
Q40: When frameserving I got the following message: "Script error, there is no function named "IPCSource"" ?
A: You probably used AviSynth v1.0b6. In this version the IPCSource is removed and put into a different dll (in avisynthEx.dll). Get this plugin or use another version of AviSynth.
There will be more changes after a few days...
Wilbert
2nd August 2002, 16:35
- Rewrote Q2 and updated Q5.
- Changed the links in Q19.
- Added the colorspace conversion problems in Q12.
sh0dan
2nd August 2002, 18:49
(Suggestion for update on colorspaces)
Q23: How do I convert between the colorspaces ?
A: Converting to YUY2:
ConvertToYUY2()
and for converting to RGB:
ConvertToRGB()
Note that converting between colorspaces isn't completely lossless, and doing several conversions back and forth may degrade your signal. The first conversion back and forth does not hurt your source, but if you use three or more, it may.
Q24: What/when do I care when filter X works in RGB- or YUV-space ?
A: The main reason why you should care is the improvement in speed you can obtain by not unnecessarily changing between colorspaces. If your source is YUV (when encoding DVD's for example, or captures from digital sources) try to use only filters/plugins which work in YUV-space. On the other hand if your source is in RGB (for example from analog captures) try to use only filters/plugins which work in RGB-space.
Speed is also quite different between the different colorspaces, because each colorspace takes up different amounts of memory. The slowest colorspace is usually RGB24, because every pixel has an odd alignment in memory, avoid using this mode. The fastest mode is usually YUY2, because data only takes up half as much space as RGB32. So if you have to process your video a lot, try using ConvertToYUY2() before you do your filtering. Note that ConvertToRGB converts to RGB32 if the source is YUY2 - use ConvertToRGB32 to force a RGB24 to RGB32 conversion.
You should also consider your destination colorspace. If you plan on converting to DivX/Xvid/HuffYUV in Virtual Dub without applying filters in Virtual Dub, "Fast Recompress" will deliver the YUY-data directly to the codec, saving you another colorspace conversion. On the other hand, if you plan using TMPGEnc or Virtual Dub in "Full Processing" mode, you may consider delivering the source as RGB.
Richard Berg
2nd August 2002, 23:52
sh0dan & Wilbert now have the necessary permissions to create/edit the documentation on SourceForge. You're doing great work here with the FAQ and the new function descriptions; if all you do is copy/paste over to SourceForge occasionally I'll be happy.
Wilbert
5th August 2002, 15:30
@Richard,
Done. The only thing there right now is Koepi's changelist; right now I'm working on adapting Wilbert's FAQ (e.g. adding
I've seen it, very nice!
sh0dan & Wilbert now have the necessary permissions to create/edit the documentation on SourceForge. You're doing great work here with the FAQ and the new function descriptions; if all you do is copy/paste over to SourceForge occasionally I'll be happy.
Sorry for this dumb question, but how/where can we do this?
@sh0dan,
I will update it, thanks!
Edit: Ahum, I have a small problem. I can't put more text in the faq :) Dividee you can insert an empty post between the faq and your post which I can edit?
Richard Berg
5th August 2002, 15:48
@Wilbert --
Start here (http://sourceforge.net/docman/?group_id=57023), you should be able to add/edit anything on this screen.
Read the end of this thread (http://forum.doom9.org/showthread.php?s=&threadid=30436) though -- we won't be using the SourceForge doc manager much longer, so I wouldn't bother. The changelist there is already out of date, in fact; I added a few lines to the one on the CVS (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/avisynth2/avisynth/docs/changelist.html?rev=1.2), which in turn should be replaced by a website something driven by Wikki (http://tavi.sourceforge.net).
dividee
5th August 2002, 16:10
Edit: Ahum, I have a small problem. I can't put more text in the faq :) Dividee you can insert an empty post between the faq and your post?
Not sure how to do that. I'll delete my post so you can reuse the next one, which is yours.
poptones
5th August 2002, 23:07
There is now an index on the front page. (http://www.avisynth.org/wiki/) This FAQ can be moved to the wiki simply by clicking the question mark and cutting and pasting.
Yeah, I know it's not exactly quick, but it really is simple. Took me about an hour to create what's there now. Filling in the command glossary now is just a matter of cut and paste as we (I?) get the time. You could do the same thing with the quesitons and links. I'll be glad to help out, but it'll be late this evening before I get back to it.
Wilbert
6th August 2002, 10:54
Nice, very nice! I have to figure out how it all works yet, because it is not entiry copy and paste (see http://tavi.sourceforge.net/FormattingRules). But I started ...
WarpEnterprises
6th August 2002, 11:14
@Wilbert: Do you too experience problems when accessing the wiki (as if the wiki-server has a very bad performance?)
Wilbert
6th August 2002, 11:30
I have no problems with it. It is not slow or anything like that.
edit: In the Tavi FAQ (http://tavi.sourceforge.net/TaviFAQ) I saw this:
Performance problems
Q: I just installed Tavi and some pages (in particular submitting a newly edited page) are taking a ridiculously long time to load. What's wrong?
A: This could well be a problem with Tavi using gethostbyaddr() in several places throughout the script, which on some servers causes a major performance hit. A "quick hack" solution is to remove all calls to gethostbyaddr($REMOTE_ADDR) and replace them with $REMOTE_ADDR on its own. In Tavi 0.22 you need to edit lib/category.php line 46, action/admin.php line 80 and action/save.php lines 32 and 53.
Richard, Sh0dan, can you have a look at this.
Richard Berg
6th August 2002, 21:09
I've made the suggested edits, let me know if that helps. I'll also be editing the templates sometime soon -- the guy behind Easytopicmaps.com sent me his PHP yesterday.
There's still work going on in the CVS /docs (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/avisynth2/avisynth/docs/) so check to be sure you don't work too hard :)
WarpEnterprises
6th August 2002, 23:02
@RB:It seems the access is ok now.
THX
Wilbert
7th August 2002, 10:50
@poptones, Warpenterprises
Yeah, I know it's not exactly quick, but it really is simple. Took me about an hour to create what's there now. Filling in the command glossary now is just a matter of cut and paste as we (I?) get the time. You could do the same thing with the quesitons and links. I'll be glad to help out, but it'll be late this evening before I get back to it.
That would be very nice. Hopefully we can get it ready at the end of the week before I go on holidays. Maybe you can start at the end of the faq with the last three sections or so.
But it is not a simply matter of cut and paste :) If you look at what I did already you will know how it works.
poptones
8th August 2002, 01:39
I don't understand. It still looks like a matter of cut and paste. What am I missing here?
Your docs look awesome, BTW. A lot of work there I'm sure.
Wilbert
8th August 2002, 10:29
I don't understand. It still looks like a matter of cut and paste. What am I missing here?
I would say try and you will see, but I see that you already were editing stuff. Things like italic, bold, enumeration, urls, anchors, much be changed. Of course it is not too much work ...
But something happened to http://www.avisynth.org/index.php?page=AviSynthFaq. The layout is changed (personally I don't like the green bars on the left, especially if you want to print that page). But these docs can't be edited anymore. What happened?
Edit: when trying to reach that page I see now parse errors. I guess I much be patience.
Richard Berg
8th August 2002, 12:31
Ok, I'm done fiddling with the layout (for now, anyway). If the sidebar wastes too much space I can turn down the font size a bit, but consider it an inspiration to keep individual pages short :)
Wilbert
25th August 2002, 12:48
I removed the faq in this thread, and redirected to the faq on http://www.avisynth.org/index.php?page=AviSynthFaq. Several changes were made, the main ones:
updated Q2
Changed Q6; pointers to the "new" documentation
updated Q13; added Nics plugin (MPEGdecoder for loading vob/mpeg2 files)
updated Q15; about compressed audio support
updated Q21; added new plugins (MAM, Convolution3D, STMedianFilter, DNR2 (YUY2/RGB) and 2d_cleaner (YUY2))
If I've installed the stuff Shodan sent me, I will change it on the project page.
Wilbert
30th August 2002, 17:43
I made the following updates:
Q21: added description of MAM
Q32: starting from v2.05 it is possible to do auto-plugin loading
Q42: about the improved version of the import premiere plugin
minor updates of Q5 (Loop doesn't work in v2.05) and Q17 (compressed audio support)
Wilbert
13th September 2002, 20:51
Q21 and Q22: added plugins which were floating around recently (Chromashift, Lanczos, AntiBlink, Msharpen, Dub and Focus2)
added:
N1: Does AviSynth have a GUI (graphical user interface) ?
A: No, but: Belgador made a start for AviSynth support in VirtualDub ([have a look at this thread], just copy the exe in the VDub-dir). It acts like a menu where you can add filters, show a preview, edit the script manually, etc.
Wilbert
27th September 2002, 18:25
the main changes:
added (I have to do a renumbering when I have time):
N2: When frameserving I got the following message: "Script error, there is no function named "xxx (some filter)"" ?
A: You probably installed/registered a version of AviSynth which doesn't contain the filter. Make sure that there are no other versions floating around on your hard disc (there's a possibility that a version will be registered while it is not in your system directory). Check that the right version is registered, see also Q3.
Q43: How do I frameserve to Windows Media 9 Encoder using AviSynth ?
A: Download Nic's Windows Media 9 Encoder and make sure you also installed the Windows Media 9 codec. Both can be found [here].
changed Q33 into:
Q33: What is mpeg2dec.dll/mpeg2dec2.dll/mpeg2decpp.dll and where can I find those plugins ?
A: mpeg2dec.dll/mpeg2dec2.dll/mpeg2decpp.dll are plugins (if you experiences crashes try the latter which is more robust) which enable AviSynth to import MPEG2 files. Mpeg2source returns the frames in YUV format.
mpeg2dec.dll is available (including some filters) at [Dividees homepage], mpeg2dec2.dll is available at [trbarry homepage] and Marc FD's plugin mpeg2decpp.dll is available at [1].
The main difference is that mpeg2dec2.dll is more rubust than mpeg2dec.dll and mpeg2decpp.dll (which is based on Dividees mpeg2dec.dll) contains Nics post processing (like deblocking and deringing).
added two plugins to Q21:
30.[BorderControl plugin (by Simon Walters)]: After capturing video you might want to crop your video to get rid of rubbish. BorderControl enables you to smear added borders instead of adding solid borders preventing artefacts between picture and border.
31.[WarpSharp, Xsharpen, SmartSmoothHiQ, UnsharpMask, UVTimingH, UVTimingV, LoadAviUtlInputPlugin, Auto24FPS, AutoDeint, FrameCache (by GuiltyX)]: Ported VirtualDub filters.
changed Q11 into:
Q11: How do I load my AVS-file AviSynth in encoder/application X ?
A: Just open your AVS-file in TMPGEnc, CCE SP, VirtualDub or whatever encoder/application you use. For VFAPI you need to install the [ReadAVS] plugin. Just copy ReadAVS.dll to the VFAPI reader directory and open the reg-file ReadAVS.reg in notepad and change the corresponding path. Save it, and doubleclick on it to merge it with your registry-file.
Wilbert
18th October 2002, 18:44
I reorganized the faq and made some changes, briefly:
- added Q6: How do I install AviSynth ?
- added a link to [VirtualDubAVS&OGM] in Q10
- added Q19: I get an unrecognized exception error trying to load an avs file with VirtualDub, using dvd2avi v1.77.3 ?
- added Q28: SmoothDeinterlacer (by Xesdeeni)
- added Q28: a link to MAM
- added Q28: Wavelet Noise Reduction (by thejam)
- added Q28: Ghostbuster (by SansGrip)
- some other minor corrections/additions
I hope it is a bit better now ...
Richard Berg
28th October 2002, 11:20
I consolidated AviSynthPlugins into Q28 and cleaned things up a bit, adding the Peach while I was at it. Not FAQ-related, but I also added some stuff to ShareFunctions.
Richard Berg
29th October 2002, 18:46
Thanks for adding the VDub collections; I added direct download links. BTW, if you ever want text files (or anything else -- we've got 100MB) uploaded, just email me.
Wilbert
8th November 2002, 16:16
Ok, thanks Richard.
The main changes (briefly summarized):
- Changed Q10 about VirtualDubMod (especially the avs preview and the command line processor). I also added AVSGenie. Tell me if the description is ok.
- In Q28 I added the following plugins: Blockbuster, GrapeSmoother, msoften (a good two line description is still lacking) and Guava comb.
High Speed Dubb
20th November 2002, 04:59
Thank you to Richard and Wilbert for putting in the links the filters I wrote up. I notice that Peach Smoother got its silly explanation onto the page. ;)
Is it okay if I make some changes to the filter explanations? I’d like to include the Peach’s need for SSE, remove the reference to the green dot (since that’s no longer on by default), and move Guava Comb into the miscellaneous section. (Technically it does average temporally, but it’s much more special purpose than a temporal smoother. Its closest relative is probably AntiBlink.)
While I’m at it — Shouldn’t TemporalSoften2 be in the temporal smoother section?
Richard Berg
20th November 2002, 07:57
Yes, I was still laughing at your description when I added Peach and decided to be silly ;) Change whatever you feel appropriate, that's the whole idea.
PS check your Guava thread
High Speed Dubb
20th November 2002, 08:53
Okay, I entered a few changes. They’re mostly to my own filters, but I also added TemporalCleaner and moved a couple other filters around (TemporalSoften2 and CopySame).
High Speed Dubb
20th November 2002, 09:43
... And I’ve also added in NoMoSmooth. I’ll leave it to SansGrip to fill in exactly what it does, since I think it’s a work in progress.
Here’s another idea: Would anyone mind if I collected together a bunch of filters into a “Capture Artifact Removal” category? Guava Comb, Antiblink, GhostBuster, and BorderControl could probably go into it. The category is a little shaky, since noise and interlace are also capture artifacts — but it’s probably better than dropping them all into “misc.”
Also, I think ViewFields probably belongs in the deinterlacing section.
Richard Berg
20th November 2002, 10:38
Other possible names: "analog cleanup" or "broadcast video" or "capture helpers"...some combination of those will work perfectly, but I can't think of it right now...
BTW -- I've borrowed some PHP/MySQL code from a friend in the hopes of making it simpler for others to upload things to the webserver. The application that came immediately to mind was to give filter authors an easy place to list their wares; less maintainance work to keep the Wiki up to date ultimately means happier users. Thoughts?
Obligatory screenshot (that happens to use said service in its original form -- I'd modify it to accept non-images, of course):
http://members.arstechnica.com/subscriptors/x/richard_berg/kurt_hosting.png
High Speed Dubb
21st November 2002, 06:36
I went with “broadcast video” — I think that’s a good description of the filters’ target.
On top of that, I gave the list a fairly general edit. Feel free to change any of it back if you don’t like the alterations, or you can just ask me to fix it.
The docs refer to YUY2 and YUV without explaining their relationship. Should we wait until YV12 is generally available before fixing that up?
Wilbert
21st November 2002, 10:48
I went with “broadcast video” — I think that’s a good description of the filters’ target.
On top of that, I gave the list a fairly general edit. Feel free to change any of it back if you don’t like the alterations, or you can just ask me to fix it.
Thanks for your improvements!
The docs refer to YUY2 and YUV without explaining their relationship. Should we wait until YV12 is generally available before fixing that up?
We can already start with that. I don't know when Sh0dan is planning the first beta release of v2.5, but the docs should be adapted at that time.
Wilbert
20th December 2002, 10:54
The past days I did a major update of the faq. A very brief summary:
1) included most of the YV12 stuff from the YV12 faq:
- Q7-Q11: how to encode in YV12?
- Q16: about avs2avi
- Q35: list of all the v2.5-plugins
2) Q32: Improved description of RGB/YUV colorspace.
3) Q31: DirectShowSource and VobSub.
4) Q27-Q28: MP2-audio
5) Q34: Added v2.0x plugins, but I forgot which ones.
Regarding to www.avisynth.org I added descriptions of new internal filters which will be available in v2.5. (Except ColorYUV, because I don't know that filter very well.)
sh0dan
27th December 2002, 01:41
ColorYUV information has been added!
Also modified some information on SwapUV and sample conversion.
Also limiter only accepts yuv data.
Antimon
28th December 2002, 19:14
there is a problem with teh q&a
vob-files
Make a DVD2AVI project file and save it (filename.d2v) and load this clip into AviSynth:
LoadPlugin("d:\mpeg2dec.dll")
mpeg2source("d:\filename.d2v")
or
download the [MPEGdecoder (by Nic)] and make the following script (no audio support yet):
LoadPlugin("d:\MPEGdecoder.dll")
mpeg2source("d:\filename1.vob+d:\filename2.vob")
acording to the mpegdecoder i downloaded today mpeg2source is not a recognized command, if i make it mpegsource it works with vob's and likely all examples you give
Wilbert
29th December 2002, 00:59
Thanks, I will change that soon!
sh0dan
5th January 2003, 17:11
I've been doing some updates on avisynth.org - and I'm beginning to love wiki very much.
I would encourage everybody to start creating some guides. Topics could cover:
MPEG2 -> XviD
MPEG2 -> VCD / SVCD
AVI -> MPEG
DV -> DVD
CleaningCaptures
CleaningDV
AdjustingColors
Edit: Hmmm.. about the wiki love. Is there a way to undo changes completely. I mean - the hsitory allows you so see what have changed, but it doesn't show any formatting. Is there a way to make wiki give you the unformatted text, when some dopehead has deleted it?
HarryM
8th January 2003, 09:43
@Sh0dan:
Can you implement into Avisynth 2.5 fast version of ReduceBy2 (maybe FastReduceBy2 named), based on simple 2x2 matrix resize (such like in Virtualdub)?
@Virtualdubmod makers:
It is possible make any modification, which can allow insert AVS script direct into video capturing process?
Pure Virtualdub allows only own RGB processing at capturing process (it is dammly slow)...
Script for on-fly capturing into XviD (full in YV12) can be (e.g.):
(YV12, 768x576 px PAL)
ReduceBy2
TemporalSoften(1,5,6)
(YV12, 384x288 px XviD)
I think, that actual CPU's are competent fast for implementing this...
hakko504
8th January 2003, 10:14
Originally posted by sh0dan
Edit: Hmmm.. about the wiki love. Is there a way to undo changes completely. I mean - the hsitory allows you so see what have changed, but it doesn't show any formatting. Is there a way to make wiki give you the unformatted text, when some dopehead has deleted it? Just click on 'edit document'. Then choose 'view history'. Then click on the date that you think is the last correct one, usually one with a known author (Like sh0dan, hakko504, wilbert...). Then you (re-)save that document and voila.
sh0dan
8th January 2003, 10:37
Nice! Thanks!
sh0dan
8th January 2003, 10:38
Originally posted by HarryM
@Sh0dan:
Can you implement into Avisynth 2.5 fast version of ReduceBy2 (maybe FastReduceBy2 named), based on simple 2x2 matrix resize (such like in Virtualdub)?
I seriouslu doubt it will be any faster than the 121 matrix currently being applied, and quality is more exact.
scmccarthy
8th January 2003, 15:25
@sh0dan&HarryM
Yes, a 121 kernel sites the resize over the right line and a 22 kernel would shift the image a half line. It's analogous to the siting issues for chroma.
Stephen
Wilbert
23rd January 2003, 18:27
I renumbered the questions in the faq. I'm sure you will get used to it :) This way it is much easier to add and delete questions!
What I'm also sure of is that I broke some links on www.avisynth.org. I will restore them and add some other stuff tomorrow.
cweb
25th January 2003, 15:26
I should write a guide on MPEG2 to KVCD. ;)
Originally posted by sh0dan
I've been doing some updates on avisynth.org - and I'm beginning to love wiki very much.
I would encourage everybody to start creating some guides. Topics could cover:
MPEG2 -> XviD
MPEG2 -> VCD / SVCD
AVI -> MPEG
DV -> DVD
CleaningCaptures
CleaningDV
AdjustingColors
hakko504
25th January 2003, 15:33
I have started with the MPEG2 -> AVI guide, and I intend to cover DVD-decryptor(done), DVD2AVI(done), GordianKnot(done), manual encodes with DivX 3.11, 5.02, 5.03 (Mostly done, minor adjustments might be necessary).
Xvid guide still not done. I'll take a look at it, but I still might need help with it. I also added a quick guide for DivX5Enc, and I've asked Dolemite to write something about DVX.
Wilbert
7th February 2003, 17:16
I added a bunch of stuff to the faq last week:
added Q1.13: I got the message "LoadPlugin: unable to load "xxx" is not an AviSynth 1.0 plugin ?
added Q1.14: How do I know which colorspace I'm using at a given place in my script ?
added Q1.21: Where can I find VCF2AVS ?
Restyled Q2.10, added: how to open ATSC/PVA transport streams in AviSynth. I hope Nic/Tom will correct it if necessary :)
updated our filter list in Q3.3 and Q3.4.
Several other little things.
Wilbert
8th June 2003, 22:34
I reorganized the faq:
removed outdated stuff related to old AviSynth/DVD2SVCD/TMPGEnc versions
replaced link2 by makeAVIS
added the PluginPace frameserver (Vegas, Premiere, Ulead -> AVS)
removed chapter 5
a lot of other minor improvements
Loul
21st June 2003, 22:46
Looks like some idiot erased the faq.
http://www.avisynth.org/index.php?page=Section+3%3A+Filters%2C+plugins+and+colorspaces
http://www.avisynth.org/index.php?page=Section+3%3A+Filters%2C+plugins+and+colorspaces
Well the good thing is that we can still access the old pages through http://www.avisynth.org/index.php?page=RecentChanges
Edit : looks like wilbert repaired it all, thanks !
Wilbert
23rd June 2003, 11:08
Edit : looks like wilbert repaired it all, thanks !
Someone else repaired it. Thanks, nkotb!
arlsair
23rd July 2003, 23:34
The FAQ is now available in german.
German AviSynthFAQ (http://www.avisynth.org/index.php?page=AviSynthFAQ+Deutsch)
Just for info.
Wilbert
24th July 2003, 00:19
Great work. I'm sure German people will appreciate this!
Selur
24th July 2003, 16:55
hail to arlsair :D
Originally posted by Wilbert
Corrected Q13.3:
How to read import mpeg2-files in AviSynth.
Removed Q36:
That was about the mpeg2enc.dll plugin, that had nothing to do with AviSynth.
Added Q35:
Q35: When i try to use SpatialSoftenMMX, it crashes in VirtualDub ?
A: You probably used this filter before resizing. Apperently SpatialSoftenMMX doesn't like resolutions that cannot be divided by 8 or 16. So if you use it after resizing it works, of course.
Hey guys.. Where exactly is this FAQ posted? I can't find these questions listed anywhere on http://www.avisynth.org/index.php?action=history&page=AviSynthFaq
Wilbert
8th July 2004, 10:31
Those are questions from a faq which is a dozen times updated.
How to read import mpeg2-files in AviSynth.
Is listed in Q3.5: MPEG Decoder (source) Plugins: (...). (and also in Q2.8).
SpatialSoftenMMX
Nobody uses this plugin anymore. I thought it was a filter from mpeg2dec.dll, but looking at http://users.win.be/dividee/avisynth.html I guess I'm wrong. Anyone?
esby
12th January 2005, 16:50
I don't know if it is mentionned anywhere...
But there is a bug that scarface encountered on a script he copy pasted from the forums..
the script was saved in unicode:
so when you open it with notepad, nothing seems wrong...
but when you try to load it, it will throw an exception.
check http://esby.free.fr/perso/scarface/
for a working and non working script...
esby
ilovejedd
11th September 2006, 01:32
I didn't find this in the FAQ so I'm asking here regarding function name precedence. The AviSynth website has the following information:
The order in which function names take precedence is as follows:
1. user-defined function (always have the highest priority)
2. plugin-function (have higher priority than built-in functions - they will override a built-in function)
3. built-in function
Inside those groups the function loaded at last takes precedence, there is no error in a namespace conflict.
What is the order in which AviSynth loads functions? For example, I have the following plugins in the AviSynth plug-ins directory: dgdecode.dll, mpeg2dec.dll, mpeg2dec3.dll and I use the following script:
mpeg2source("test.d2v")
Which mpeg2source() function will AviSynth use?
Also, say I have DGDecode.dll v1.4.8 in the AviSynth plug-ins directory. However, a particular project requires DGDecode.dll v1.1.0 which I have saved in C:\DVD-RB\. If I use the following script:
LoadPlugin("C:\DVD-RB\DGDecode.dll")
mpeg2source("test.d2v")
Will AviSynth use v1.4.7 (auto-loaded) or v1.1.0?
Thanks!
foxyshadis
11th September 2006, 04:51
Precedence of autoloading is alphabetical; the last loaded is the one that wins, but you can still use dgdecode_mpeg2source() even if mpeg2dec3 takes the unspecified name over. Giving them new names so they load before dgdecode is wise; but I'd keep them in a manually loaded "obselete" folder anyway, especially since mpeg2dec3 doesn't play nicely with 2.5.7 at all.
In the second question, you're manually loading one, which always takes precedence over an autoloaded function.
ilovejedd
11th September 2006, 08:35
Thanks for the very helpful info! I know that AviSynth supports DLLname_function() but since the script is automatically generated, I wanted to know which function will be used. I don't really have mpeg2dec.dll or mpeg2dec3.dll as I'm very happy with DGDecode. I just used them as an example. I kinda thought it might be alphabetical but I just wanted to make sure. :)
Ð.Sp!dér
20th February 2007, 14:11
Why does Avisynth show "fps=23.9759856527702" while GSpot only sees 23.976 ? :|
foxyshadis
20th February 2007, 20:00
The internal fps is an arbitrary precision division of two numbers, and usually isn't exact. The gspot one just rounds it off to three places to make it look nice (and possibly fits it to the nearest "normal" ratio). The exact one would be 24000/1001.
Gilgamesh83
27th February 2007, 12:45
I recently posted something like this in another thread but if you wanna solve the problem with the fps in avisynth is to in my case with convertfps is to write not convertfps=23.976 which results in a 23.975 encode and playback of that avis but to enter convertfps=23.9762 thats right just a simple 2 after the 23.976 crazy eh! But not really since I came up with the idea of entering 23.9762 after I looked into a statsfile created by x264.exe and saw that it uses the division 250000/10427=23,976215594130622422556823630958
Anyway this solved my problem with my fps in avisynth, oh and this also applies to 119.880 fps which must be entered as 119.881=correct.
IanB
27th February 2007, 13:59
Read this thread! ... nicefps() into changefps()/assumefps() (http://forum.doom9.org/showthread.php?t=104681)
abood-conan
20th April 2007, 22:27
Hi everybody,
i Don't write a lot in this forum maybe because I still need the experience ...
anyway, I will not take too long time from you
but I want to ask a question .. encoding an anime ( avi ) .. how can i use avisynth to help me improve the overall look of the video .. i don't want you to explain .. just suggest some plugins that can be useful and i will search about the rest ^^
please help me guys.
anahita
23rd May 2007, 12:18
Ok, thanks Richard.
abood-conan
6th August 2007, 07:12
guys .. i'm trying to encode anime in avi which is DVD originally .. but i don't know how to deinterlace it .. dvd2avi says it's interlaced .. so can you give me any way to deinterlace ..
Leak
6th August 2007, 09:20
guys .. i'm trying to encode anime in avi which is DVD originally .. but i don't know how to deinterlace it .. dvd2avi says it's interlaced .. so can you give me any way to deinterlace ..
If it's anime, it's most definitely telecined which usually means that the original progressive video can be restored.
Don't just deinterlace it, since that'll ruin it. Search for the TIVTC AviSynth filter and give it a try.
Xiphan
27th August 2007, 15:35
Sup everyone?
I'm curious to know what convertfps=true/ false does when specifying a fps using DirectShowSource?
DirectShowSource("test.asf", fps=25, convertfps=false)
When set to true does that mean the fps will be converted to whatever has been specified, in this case: 25fps?
Or does setting it to false convert it to 25fps cfr and true mean that the fps will jump as the source fps jumps? :confused:
neuron2
27th August 2007, 15:44
From Avisynth documentation:
It turns variable framerate video (vfr) into constant framerate video (cfr) by duplicating or skipping frames. This is useful when you want to open vfr video (for example mkv, rmvb, mp4, asf or wmv with hybrid video) in AviSynth. It is most useful when the fps parameter is set to the least common multiple of the component vfr rates, e.g. 120 or 119.880.
Xiphan
27th August 2007, 16:01
From Avisynth documentation:
It turns variable framerate video (vfr) into constant framerate video (cfr) by duplicating or skipping frames. This is useful when you want to open vfr video (for example mkv, rmvb, mp4, asf or wmv with hybrid video) in AviSynth. It is most useful when the fps parameter is set to the least common multiple of the component vfr rates, e.g. 120 or 119.880.
I saw that as well, but what option must I specify to get cfr? false or true? :confused:
neuron2
27th August 2007, 16:04
Set it to true.
Xiphan
27th August 2007, 18:52
Set it to true.
Ok thanks! ;) Is true the better option to use, in my case, I'm converting an asf file to avi, and apparently it has an fps of 25?
Wilbert
27th August 2007, 19:06
Both false and true will result in cfr. The difference is that setting it to false, it will load the video with fps=25. If the frame rate is different, or variable, you will get video and audio which is not in sync. When setting it to true it will add/delete frames (to match the specified fps), with the result that the video and audio is in sync.
Since asf is vfr, yes, you should use it.
Xiphan
29th August 2007, 02:29
Both false and true will result in cfr. The difference is that setting it to false, it will load the video with fps=25. If the frame rate is different, or variable, you will get video and audio which is not in sync. When setting it to true it will add/delete frames (to match the specified fps), with the result that the video and audio is in sync.
Since asf is vfr, yes, you should use it.
Ok thanks! That explains a lot! :) What exactly is happening if I don't specify any fps parameters? If I just have a script like this:
DirectShowSource("test.asf")
Would this result in audio sync errors too?
Wilbert
29th August 2007, 20:58
Ok thanks! That explains a lot! What exactly is happening if I don't specify any fps parameters? If I just have a script like this:
It tries to guess the fps, but i forgot how that works. Perhaps someone else knows?
Would this result in audio sync errors too?
Yes. Arguments have a default value (which is false for convertfps), which are used if you don't specify the arguments.
foxyshadis
29th August 2007, 22:30
It uses whatever framerate the splitter reports back. Since directshow is based on timecodes, there's no harm in returning totally off-the-wall framerates, or one framerate for everything, so some do. Others will report the average duration, the framerate muxed into the container (which can anything for the same reason, but muxers are better in this respect), the duration of the first frame, and so on. Obviously a completely unreliable value, you're better off never trusting the splitter.
AkumaX
27th September 2007, 18:16
i'm looking to use a built in filter (logo, specifically) from vdm, in avisynth. is there a way i can do that? (i'd use donald graft's logo 1.34a but it doesn't give me the intended results)
thanks in advance!
foxyshadis
27th September 2007, 19:08
Not without breaking it out as an external plugin, unfortunately.
For logo, you can use Overlay or Layer to get the same effect in avisynth. You can also try the xlogo plugin for more options.
neuron2
9th October 2007, 05:19
Guys, you won't get specific help on problems in this thread. Please start a new thread for your problems.
video
3rd January 2008, 14:23
have anybody have/seen the sources of the pixiedust (dust.v5.dll) avisynth plugin?
thx.
unskinnyboy
3rd January 2008, 15:19
have anybody have/seen the sources of the pixiedust (dust.v5.dll) avisynth plugin?
thx.Nope. Steady never released the source.
KG6ZVP
17th December 2008, 00:54
I have been developing software for use on PSP: PSP_Converter (http://pspslimhacks.com/forum/index.php/topic,4479.0.html)
This software automatically performs the following tasks via AVIsynth:
> automatic resizing of video clips to a maximum size of 480x272, but retains their original aspect ratio
> If framerate contains more than 3 decimal places, it is rounded (ex. 23.976043 to 23.976) and converted to that rate.
> If framerate is above 30 fps, it changes it to 29.970 fps
> Loads any file that can be converted in ffmpeg without that video codec being installed
I have two problems:
> Cannot handle variable framerate video files. Audio is very far out of sync. Is there a way to tell avisynth to change the framerate to one that is in sync with the audio before it is rounded?
> Cannot convert any input file which uses DAR, SAR or PAR in it's display. Is there a way to retrieve one of those values in order to calculate the output video size?
Below is my script. I have included brief explainations along with each section. I am a developer. This script must work for ANY input file and cannot be engineered for specific files.
#Load necessary plugins
LoadPlugin("FFmpegSource.dll")
LoadPlugin("Autocrop.dll")
#Load and crop input clip
Input_Clip = FFmpegSource("C:\Users\Jim\Videos\Clip.avi", vtrack=-1, atrack=-1).autocrop(mode=0)
#Calculate video width and height based on the autocropped Input_Clip and a maximum output resolution of 480x272
i_width = Input_Clip.Width
i_height = Input_Clip.Height
d_a_r = float(i_width) / float(i_height)
p_o_height = (d_a_r < 1.7647058823529411764705882352941) ? 272 : 480/float(d_a_r)
p_o_width = (d_a_r < 1.7647058823529411764705882352941) ? 272*d_a_R : 480
#Sets output width and height to numbers divisible by 4
p2_o_width = Round(p_o_width/4)*4
p2_o_height = Round(p_o_height/4)*4
o_width = Round(float(p2_o_width))
o_height = Round(float(p2_o_height))
#Retrieve framerate of input_clip, multiply by 1000 (this will be framerate denominator) and round it to a whole number
first = Input_Clip.Framerate*1000
second = Round(Float(first))
FPS_oi = int(second)
#If the rounded framerate is greater than 30.000fps, then set it equal to 29.97 fps
FPS = (FPS_oi > 30000) ? 29970 : FPS_oi
#Output is input clip, changed to the desired framerate numerator (whole number) and a denominator of 1000. The clip is also resized maintaining aspect ratio.
Output = Input_Clip.changefps(int(FPS), 1000).LanczosResize(o_width,o_height).converttoyv12()
Return Output
I'm a noob, I'm probably missing something obvious.
neuron2
17th December 2008, 04:59
You're breaking two rules with this post.
1. You can't repost an issue that was closed for a rule violation in another thread. That's a 16 strike.
http://forum.doom9.org/showthread.php?p=1224905#post1224905
2. You shouldn't be posting in this thread. Didn't you get the idea when I moved your other posts? This thread is for discussion of FAQs, not for specific problems. That's a rule 3 strike.
http://forum.doom9.org/showthread.php?p=1053536#post1053536
Do not bring up this issue again. You can't change history. And don't start debating me here either. Send a PM if you want to challenge a moderating decision.
peter71
2nd June 2010, 16:39
Hi,
The avisynth documentation mentions operator precedence, but does not say anything about the '.' operator.
I mean, experience shows that
v1+v2.bob() means v1+(v2.bob()) and not (v1+v2).bob()
but is this actually a defined behaviour ?
thanks,
Peter
Gavino
2nd June 2010, 19:45
experience shows that
v1+v2.bob() means v1+(v2.bob()) and not (v1+v2).bob()
but is this actually a defined behaviour ?
Yes, it is.
'.' is not really an operator (what would its right operand be?), just a syntactic element, but in effect it binds more tightly than any operator.
http://avisynth.org/mediawiki/The_full_AviSynth_grammar#Expressions
ProDigit
4th January 2011, 00:56
request a clear wiki page for older anime! (low bitrate,low motion encoding).
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.