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 15th May 2007, 04:29   #1  |  Link
gzarkadas
Registered User
 
gzarkadas's Avatar
 
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
New AVSLib release

A beta version of AVSLib 1.1.0 is now available from sourceforge.

AVSLib 1.1.0 represents a major step-forward in comparison to the previous 1.0.x versions. Many new features have been added, while a number of filters has been implemented, fully or partially, in C++ for increased speed (a trend that will continue). A full-featured installer has also been added. The documentation has been updated also, in particular the "Example Scripts" section, which now contains real-life examples of developing Avisynth scripts with AVSLib. Don't forget to browse the examples as quite a few useful new filters are contained there, in addition to the ones contained in the main distribution.

Until the AVSLib website is updated with the new documentation, you can see a brief change log at AVSLib's news page. It is also included in the distribution's docs.

Feedback, for any part of the library but particularly about the installer and the C++ plugins behavior (because they have been tested in relatively few configurations), would be highly appreciated .

Note:
AVSLib 1.1.0 uses a couple of Visual C++ 2005 generated plugin dlls. In order for those to be loaded the user must have installed the needed C/C++ runtime files in his/hers machine. You can get the runtime files (free download) from microsoft.com:
1. Enter "vc++ 2005 runtime" at the search box,
2. press Enter, and
3. go to the link pointing to:
"Download details: Visual C++ 2005 Redistributable Package (x86)"
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007.
[ Home page | Download page ]
gzarkadas is offline   Reply With Quote
Old 15th May 2007, 06:38   #2  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Thanks a lot - looking forward to trying it out. The thing that's equally impressive is how well thought out your accompanying web site is.

Edit: Yow, staggering amount of new features. You should have named it "Minisynth"

Last edited by Pookie; 15th May 2007 at 07:18.
Pookie is offline   Reply With Quote
Old 15th May 2007, 13:32   #3  |  Link
gzarkadas
Registered User
 
gzarkadas's Avatar
 
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
Quote:
Originally Posted by Pookie View Post
...Yow, staggering amount of new features. You should have named it "Minisynth"
Well, that would be too much a step forward ; but I will keep trying . Thanks!
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007.
[ Home page | Download page ]
gzarkadas is offline   Reply With Quote
Old 17th May 2007, 12:23   #4  |  Link
gzarkadas
Registered User
 
gzarkadas's Avatar
 
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
AvsP macro for importing AVSLib

I have made a macro for AvsP users, that updates the function definitions of AvsP with all the functions and filters of AVSLib 1.1.0 (beta). It has been tested with AvsP 1.3.9.

Download the attachment, extract the .py file and put it in AvsP's macros folder. Then run the macro from inside AvsP. You may modify some settings (such as selecting to get documentation from your local distro instead the Internet) by manually editing the file before running it within AvsP.

Any comments / feedback are welcomed.
Attached Files
File Type: zip AVSLib_Dict_1-1-0.zip (4.8 KB, 88 views)
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007.
[ Home page | Download page ]
gzarkadas is offline   Reply With Quote
Old 26th May 2008, 17:19   #5  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
The sample script for the movie intro fails with the message var_times and var_params have different lengths, line 73 of utility.avsi.

I've tweaked it slightly to report the lengths:

Assert(tlen == plen, \
"FilterChainV: 'var_times' (" + String(tlen) + ") and 'var_params' (" + String(plen) + ") have different lengths")

var_times is 6, var_params is 1

Looks like a great library, can't wait to use it more.

Tac

PS I've submitted this bug via SourceForge as well.

Last edited by tacman1123; 26th May 2008 at 17:21. Reason: typo
tacman1123 is offline   Reply With Quote
Old 26th May 2008, 17:34   #6  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
False alarm: I had cut and paste from the web documentation, and it must have had different line endings, so that instead of seeing 6 items, it only saw one.
tacman1123 is offline   Reply With Quote
Old 27th May 2008, 10:12   #7  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
gzarkadas Good work, it appears that you spent a lot of time working on this. One thing that would make life better, make all the examples ready to use. If the files are in a zip C:\Program Files\AVSLib\1-1-0(beta)\docs\examples\.... then unzip them as part of the installer routine. Also Colorbars() and Colorbars().Invert() are you friends when demoing. Example: I like how TransAll's example at the bottom is almost usable; fix the "TV" to "tv" and it works. Try to make your examples ready to use out of the box. Also uploading the output from the various examples to youtube and embedding them in the example page would be nice.

Example 13 is nice because it works out of the box. Reminds of a screen saver.

Example 14 took about 10 min to load. One it did, it plays back slow like 13. These were the only 2 i got to work "out of the box". If I replace AVISource with colorbars(), then i can get something like half of the examples to go. Examples are key IMO. I get the same error that tacman1123 got on the subtitle examples. Even when using C:\Program Files\AVSLib\1-1-0(beta)\docs\examples\files\script-003.avs

Keep up the good work, there is a lot of potential here!

Last edited by mikeytown2; 27th May 2008 at 10:18.
mikeytown2 is offline   Reply With Quote
Old 27th May 2008, 11:41   #8  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
I'll second the request for working examples -- this looks great, show it off! I'd prefer real examples rather than ColorBars(). One idea I was thinking of is replacing all the hardcoded filenames with variables, which could be set in a function like LoadExampleFilenames, so the user could then replace just one function and see everything the library does using their own images. (Alternatively, they could be GLOBALS, but they still should only be defined in one file, so that you don't have to tweak every file you want to see). You could make the filenames indicated features as well, such as movie-22s.avi for a 22-second movie, color1024x768.jpg for a photo of those dimensions, etc. But providing the avi/jpg necessary to run out of the box would be good.

I randomly picked a video and jpg to test with script-002.avs, and got a stretched image for a few seconds, distorted and echo'd audio, then it stopped with the error message "Crop: YUV images can only be cropped by even numbersw (left side)." Before diving into fixing that problem, I was hoping to see what script-002 does with files that work for it.

Again, thanks for the updated release! Mike, good to see you over here, I was looking at the library and wondering if there were tools in here for KBE that would be faster (since it's compiled). Obviously, it would make the KBE usage dependent on AVSLib, but other than the installation time and keeping the versions in sync, is there any downside to that?

Tac
tacman1123 is offline   Reply With Quote
Old 27th May 2008, 12:59   #9  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
Example 13 is dependent on mt_masktools.dll, when I downloaded it from http://manao4.free.fr/ to my plugins directory I still am seeing the error. mt_masktools isn't listed on the External Filters page (http://avisynth.org/mediawiki/External_filters), so I'm not sure where to get the latest/greatest.

I took a stab that I might need MVTools, downloaded that dll to my plugins directory as well, but still no luck.

George, in cases where there are library dependencies, can you provide a link to the library?

Thx,

Tac
tacman1123 is offline   Reply With Quote
Old 27th May 2008, 20:46   #10  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
Quote:
Originally Posted by tacman1123 View Post
Example 13 is dependent on mt_masktools.dll, when I downloaded it from http://manao4.free.fr/ to my plugins directory I still am seeing the error. mt_masktools isn't listed on the External Filters page (http://avisynth.org/mediawiki/External_filters), so I'm not sure where to get the latest/greatest.

I took a stab that I might need MVTools, downloaded that dll to my plugins directory as well, but still no luck.
It is in the wiki and it even has it's own page on the wiki. Anyway you probably downloaded the 1.x version, there is a 2.x version further down the page
masktools-v2.0a35.zip 19-Apr-2008 11:04 625k
mikeytown2 is offline   Reply With Quote
Old 27th May 2008, 21:04   #11  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
Searching the wiki for 'mt_masktools' returns no results.

Thanks for the link, I've saved mt_masktools-26.dll in the plugins directory and it's working now.

Tac
tacman1123 is offline   Reply With Quote
Old 27th May 2008, 21:08   #12  |  Link
tacman1123
Registered User
 
Join Date: Jun 2007
Location: Washington, DC
Posts: 130
script-011.avs loads plugin "MaskTools.dll", while script-013.avs loads "mt_masktools.dll". Is one of them the multi-threaded version? Different versions of the same library?
tacman1123 is offline   Reply With Quote
Old 27th May 2008, 22:59   #13  |  Link
gzarkadas
Registered User
 
gzarkadas's Avatar
 
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
Hi,

I see that I have missed a lot of activity in this thread , so I will try to catch-up with an all-in-one post.

1. The examples need a little work to run (to provide your own sources) because I elected not to provide video clips with the distribution, both for making the installer smaller and to avoid legal issues relating to royalties. A few quick notes to help:
  • You don't have to copy and paste from the html pages. In each example page there is a link to the avs script, just before the code starts.
  • Even better, if you have selected the docs option at the installer page, all example files are in your hard-drive (inside the docs\examples subfolder of the AVSLib folder).
  • Most of the times the clips loaded by AviSource are assumed to be YV12. If there are size or other requirements there is a nearby code comment. If you dont have a clip at hands, you can always put something like:
    BlankClip(pixel_type="yv12", color=<whatever>)
    or
    ColorBars().ConvertToYV12()
  • If I load a third-party plugin in an example, there is a LoadPlugin() call at the first lines of the script. I don't provide it because it is not mine .

2. MaskTools has indeed 2 versions and it just happened that I have used both in these 2 different examples.

These plugins are developed by Manao and are available at http://manao4.free.fr/. They can do a lot more than I do with them in the example scripts, so if you don't already have them, keep them in your plugin dir .

3. I will eventually make an out-of-the-box implementation of the examples; thanks to your comments (keep sending). But it will wait a while, probably to the next release.
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007.
[ Home page | Download page ]
gzarkadas is offline   Reply With Quote
Old 25th January 2012, 19:13   #14  |  Link
Jenyok
Warm and fuzzy
 
Join Date: Apr 2010
Location: Moscow, Russia
Posts: 201
AVSLib 1.1.0 beta

After unpacking archive with AVSLib, there is a Directory structure of AVSLib libruary, see in code.

Question.
In what file "avslib.avsi" I could change "__LIBROOT_AVSLIB = " variable ?
Could I change any "loader.avsi" files ?
How I could use ARRAY functions ?

Your Documentations are very poore and little.

Code:
AVSLib <DIR> (parrent DIR)
.10.02.2009  16:45    <DIR>          avslib
...14.05.2007  20:56    <DIR>          array
...14.05.2007  20:56    <DIR>          base
...14.05.2007  20:56    <DIR>          bool
...14.05.2007  20:56    <DIR>          clip
...14.05.2007  20:56    <DIR>          debug
...14.05.2007  20:56    <DIR>          deprecated
...14.05.2007  20:56    <DIR>          filters
...14.05.2007  20:56    <DIR>          numeric
...14.05.2007  20:56    <DIR>          string
...23.02.2007  18:45             1*692 __init.avsi
...14.12.2011  20:52             1*254 avslib.avsi
...12.02.2007  17:11             5*932 loader.avsi

.14.05.2007  20:56    <DIR>          docs
...14.05.2007  20:56    <DIR>          examples
...14.05.2007  20:56    <DIR>          faqs
...14.05.2007  20:56    <DIR>          functions
...14.05.2007  20:56    <DIR>          packages
...14.05.2007  16:35             3*427 avslib.css
...13.05.2007  10:36             8*320 avslib.gif
...13.05.2007  10:36             6*919 avslib_top_logo.jpg
...14.05.2007  16:35             1*418 back.gif
...14.05.2007  16:35            11*218 changes.html
...13.05.2007  10:36            20*403 fdl.txt
...13.05.2007  10:36            18*011 gpl.txt
...14.05.2007  16:35            11*160 index.html
...14.05.2007  16:35            12*004 installation.html
...14.05.2007  16:35             8*604 licence.html
...14.05.2007  16:35            11*351 project.html
...14.05.2007  16:35            14*369 structure.html

.14.05.2007  20:56    <DIR>          plugins
...14.05.2007  20:56    <DIR>          animate
...14.05.2007  20:56    <DIR>          channels
...14.05.2007  20:56    <DIR>          include
...14.05.2007  20:56    <DIR>          resize
...15.04.2007  18:19             1*274 __init.avsi
...14.12.2011  20:53             1*188 plugins.avsi
...09.05.2007  01:18             6*681 readme.txt

.21.01.2012  19:09             1*222 avslib.avsi
.12.02.2007  17:11             5*932 loader.avsi
.21.01.2012  19:13               558 README.txt
__________________
Warm and fuzzy (white and fluffy)
Jenyok is offline   Reply With Quote
Old 26th January 2012, 06:33   #15  |  Link
Jenyok
Warm and fuzzy
 
Join Date: Apr 2010
Location: Moscow, Russia
Posts: 201
gzarkadas

There are New Questions to you.

1. How to create empty Array (type "clip" in Array) with specified dimention ?
2. How to put one clip to Array in for/while loop (i.e. index variable) ?
3. How to get one clip from Array in for/while loop (i.e. index variable) ?

Please, write code examples for those questions.

Thanks a lot.
__________________
Warm and fuzzy (white and fluffy)

Last edited by Jenyok; 26th January 2012 at 07:11.
Jenyok is offline   Reply With Quote
Old 28th January 2012, 00:15   #16  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 1,100
yeah, uh, he has posted a total of one (1) time since october 2008, and was last seen to visit the forums in december 2010, so there might just be this tiny chance that he doesn't read this thread at all anymore

I don't think spamming this thread is going to help either, just sayin'

Last edited by TheFluff; 28th January 2012 at 00:18.
TheFluff is offline   Reply With Quote
Old 28th January 2012, 05:51   #17  |  Link
Jenyok
Warm and fuzzy
 
Join Date: Apr 2010
Location: Moscow, Russia
Posts: 201
http://www.scribd.com/doc/27886689/avisynth-docu

Documentation.
__________________
Warm and fuzzy (white and fluffy)
Jenyok 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 09:49.


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