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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 4th September 2006, 01:57   #1  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
New AviSynth tool - AvsP v1.4.0 (6/5/07)

Update: I created a website for AvsP, be sure to check it out, there's a ton of info in there, even long-time users are bound to learn something.

AvsP is (yet another) text editor for AviSynth, with all the exptected bells and whistles (syntax highlighting, autocompletion, calltips, video preview, etc). So what's different about this one? Let's take a look at this screenshot:



Notice the slider bars next to the video image? Basically, you can define any number of them to replace any numerical value in your script (in this case, the "hue" and "sat" arguments to Tweak), essentially giving your AviSynth script an instant gui environment. Cool, huh? (Note that you don't have to memorize any syntax, see link to demo below.) Also notice that the program is a tabbed text editor with a single attached video preview. What that means is that you can compare the video of different scripts without having to align multiple windows (anyone remember alt-tabbing multiple instances of VirtualDub? ) Anyway, the program has tons of other features, such as:

> built-in crop editor
> bookmark frame numbers in menu
> macro language for complete control of the program
> graphical front-end for avs2avi

You should read the program's readme for more info. The program itself doesn't require installation, doesn't write to the registry, and doesn't require installing any framework, so no harm in giving it a try, just unzip it to your directory of choice and off you go. You can download it here (the filesize is 5.2MB):

AvsP Download page

-> bugfix for v1.4.0

Mirror for v1.4.0 (savefile.com)
Mirror for v1.3.9 (savefile.com)
Mirror for v1.3.8 (savefile.com)
Mirror for v1.3.7 (savefile.com)
Mirror for v1.3.6 (savefile.com)
Mirror for v1.3.5 (savefile.com)

Japanese translation (translated by niiyan)
Russian translation (translated by Fizick)
German translation (translated by Henrikx)
French translation (translated by Alain2)
Spanish translation (translated by zemog)
Portuguese translation (translated by Veiga)
Italian translation (translated by khs81)

The program runs on Windows XP and win98. Anyway, I feel that the program can really revolutionize the way you use AviSynth (I've been developing it on and off for more than 2 years), so please give it a shot, and post back with any feedback.

If you're still not convinced, check out this flash-based demo, it goes over the program's fundamental features, including a demonstration of creating user sliders.

Last edited by qwerpoi; 1st August 2007 at 18:57.
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 02:57   #2  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Hey ! Nice app. I'm testing it out right now. Seems peppy. Python, right ?

Can't seem to do an external preview at the moment. Looks like the opened *.AVS file isn't being passed as a variable name to the player.
Pookie is offline   Reply With Quote
Old 4th September 2006, 05:02   #3  |  Link
unskinnyboy
Registered User
 
unskinnyboy's Avatar
 
Join Date: Feb 2004
Location: NTSC R1
Posts: 2,046
Quite nice! Toying around with it right now.

I know this is still under development, but couple of quick questions anyway:

1) Why does commenting a line or a block of text comes up as '#~' instead of just '#'. I know it doesn't matter what comes after the # once it is commented, but still curious as to why.

2) Entering a frame no. at the bottom and hitting enter takes quite an amount of time (a few seconds, but noticably annoying still) for the preview window to reposition itself at the new frame. I can understand taking time to seek to a new frame thousands of frames away, but there is a notable lag to seek to even a 100 frames away. But, if no one else has a problem with this, it is probably just my slow laptop (1.4 GHz P4M, 1 GB RAM).

Maybe more later once I poke around more..Best thing I like so far -> the preview window being attached to the main window.
Great tool. Thanks.

P.S: External preview is b0rked. Confirmed. Sounds like either a path problem (spaces in path?) or a name issue (what is being opened is sample.avs but what is being passed is previewX.avs, where X = 1,2,3..etc).
__________________
unskinnyboy is offline   Reply With Quote
Old 4th September 2006, 05:25   #4  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
@Pookie,
Hmm, strange about the external preview not working, works fine for me using media player classic - can you tell me what program you're trying to run (shot in the dark)? And yes, it's python (with wxpython) - how did you know?

@unskinnyboy,
1) Block comments use #~ to distinguish them from regular comments, basically to allow commenting or uncommenting a bunch of selected text (which would get screwed up if there were commented lines in the selected text).

2) Yes, jumping to a frame might be slow on older machines, but it may also depend on the script, try a simple AviSource on a reasonable resolution file and see if it's still slow. Runs pretty well on my laptop which has similar specs to yours.

And yes, despite all the features the program has, I also think that the attached video preview is the best one - it's pretty much the reason I wrote the whole thing to begin with .
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 07:29   #5  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Quote:
Originally Posted by qwerpoi
@Pookie,
Hmm, strange about the external preview not working, works fine for me using media player classic - can you tell me what program you're trying to run (shot in the dark)?
Mplayer (of the Mencoder family)
Pookie is offline   Reply With Quote
Old 4th September 2006, 07:40   #6  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by Pookie
Mplayer (of the Mencoder family)
Ah, someone correct me if I'm wrong, but last I checked mplayer can't play back .avs files, which is what the external preview function uses to achieve playback.
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 05:38   #7  |  Link
danpos
BDVD Team
 
danpos's Avatar
 
Join Date: Dec 2004
Location: Rio de Janeiro - RJ/Brasil
Posts: 306
@qwerpoi

It's a neat piece of software. The external preview is working fine in my system (tested with MPC, Mplayer).

Keep up the good work.

Regards,
danpos is offline   Reply With Quote
Old 4th September 2006, 06:58   #8  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
couple of suggestions (i really dig the slider idea...)

- f5 to refresh script, rather than shift-f5. mainly because VDmod does it that way, and i keep inadvertently closing and opening the preview window (also 1 key is quicker than 2 for an action that's likely to be performed often).

- preview window is docked onto script window... perhaps it could be free-floating? it could get tricky with big frame sizes is all.

another thing that'd be cool is if sliders could get some kind of realtime update... like if the last processed frame were held in memory and manipulated from there, rather than the script itself updating each time. this is probably not too workable though.
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 4th September 2006, 07:25   #9  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
@danpos
Thanks

@Mug Funky
- You're right about the F5 keyboard shortcut, I'll change it in the next version. As a temporary workaround you can hit F5 twice for the same effect, hee hee

- Yes, the preview window is docked, and will ALWAYS REMAIN THAT WAY! I know that there are advantages to a free-floating window (primarily screen real estate), but the docked window allows for a tight interaction between multiple scripts and the video preview, useful for filter chain comparisons without any window management. It's a design choice, so far I find the advantages outweigh the disadvantages, I'll wait and see what others think.

As far as realtime update for the sliders, as you mentioned, not easy. Perhaps possible if the program was communicating with avisynth directly instead of through .avs files, which is something I've considered doing (although not anytime soon ).
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 18:46   #10  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Okay, new version 1.0.3 (see first post to download), only two changes:

* fixed issue with spaces in filenames when using external preview (thanks unskinnyboy, Pookie)

* changed refresh keyboard shortcut to F5 (to be more similar to vdub), shift-F5 now hides the preview (suggested by Mug Funky)


Anyone needing to update from an older version, just replace the old exe with the new one.

Last edited by qwerpoi; 4th September 2006 at 19:42.
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 19:10   #11  |  Link
danpos
BDVD Team
 
danpos's Avatar
 
Join Date: Dec 2004
Location: Rio de Janeiro - RJ/Brasil
Posts: 306
@qwerpoi

A small suggestion: what about do you open an account at geocities and so host there yours files? It's free and hasn't such annoying tickets for download anything like rapidshare.

Regards,
danpos is offline   Reply With Quote
Old 4th September 2006, 19:40   #12  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by danpos
@qwerpoi

A small suggestion: what about do you open an account at geocities and so host there yours files? It's free and hasn't such annoying tickets for download anything like rapidshare.

Regards,
Aw, I didn't want to do anything like get a geocities account and manage a website and stuff . But since I don't like rapidshare either and since you asked so nicely, it's done (the download link on the first post has been updated).
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 20:29   #13  |  Link
G_M_C
Registered User
 
Join Date: Feb 2006
Posts: 1,076
Quote:
Originally Posted by qwerpoi
Aw, I didn't want to do anything like get a geocities account and manage a website and stuff . But since I don't like rapidshare either and since you asked so nicely, it's done (the download link on the first post has been updated).
But for me ... neither screenshot nor download-link is working atm.

Is there some alternative ?
G_M_C is offline   Reply With Quote
Old 4th September 2006, 22:44   #14  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by G_M_C
But for me ... neither screenshot nor download-link is working atm.

Is there some alternative ?
The screenshot should be working now, for the program download, it seems that you have to right-click and "save target as" to download (url gets mangled otherwise), I added the rapidshare link in case the first link doesn't work. Sorry about any temporary inconvenience.

Last edited by qwerpoi; 4th September 2006 at 23:49.
qwerpoi is offline   Reply With Quote
Old 4th September 2006, 19:42   #15  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,339
Yes indeed, v1.03 is working with external preview.

Thanks a lot for the app.
Pookie is offline   Reply With Quote
Old 5th September 2006, 01:02   #16  |  Link
danpos
BDVD Team
 
danpos's Avatar
 
Join Date: Dec 2004
Location: Rio de Janeiro - RJ/Brasil
Posts: 306
@qwerpoi

Thanks for take my suggestion into account, mate! You're superb!

Regards,
danpos is offline   Reply With Quote
Old 5th September 2006, 06:34   #17  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Brooklyn, NY
Posts: 1,211
This is super cool.
Quote:
Aw, I didn't want to do anything like get a geocities account and manage a website and stuff
I will PM you once I get some stupidity ironed out.
Richard Berg is offline   Reply With Quote
Old 5th September 2006, 10:05   #18  |  Link
ricardo.santos
Registered User
 
ricardo.santos's Avatar
 
Join Date: Mar 2005
Location: Portugal
Posts: 907
geocities download not working
ricardo.santos is offline   Reply With Quote
Old 9th September 2006, 05:53   #19  |  Link
JoeBG
stupid
 
JoeBG's Avatar
 
Join Date: Sep 2004
Location: Cologne
Posts: 638
Hi,

how can I manage it to write a macro for just inserting scripts like the following:

#
##DeLogo##
import("C:\Video\Avisynth\AviSynth 2.5\DeLogo\DeLogo.avs")
DeLogo( x1, y1, "RO", "ARD", Cmix=0.0, Lmix=0.0)
#

The name of the skript is DeLogo and I want to insert it with a simple click. Any idea how to manage this?
__________________
cu

Joe
------------------------
freedom is just another word for nothing left to loose

Last edited by JoeBG; 9th September 2006 at 06:29.
JoeBG is offline   Reply With Quote
Old 9th September 2006, 19:06   #20  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by JoeBG
Hi,

how can I manage it to write a macro for just inserting scripts like the following:

#
##DeLogo##
import("C:\Video\Avisynth\AviSynth 2.5\DeLogo\DeLogo.avs")
DeLogo( x1, y1, "RO", "ARD", Cmix=0.0, Lmix=0.0)
#

The name of the skript is DeLogo and I want to insert it with a simple click. Any idea how to manage this?
Easy enough, the Template Example.py in your macros directory is a good thing to look at for basic text insertion. Here's the DeLogo macro, copy and paste into a text file in your Macros directory named DeLogo.py:
Code:
avsp.InsertText(
'''#
##DeLogo##
import("C:\Video\Avisynth\AviSynth 2.5\DeLogo\DeLogo.avs")
DeLogo( x1, y1, "RO", "ARD", Cmix=0.0, Lmix=0.0)
#'''
)
The macro is only using one function, avsp.InsertText(), which by default inserts the given text into the current tab at the current cursor position. Also note the text was surrounded by triple single quotes, which is a special string that preserves newlines and stuff. This macro will show up in the Macros menu the next time you start up AvsP, the first 4 macros get keyboard shortcuts F1 through F4, so you may need to rename some of the macro files to get them in the order you want (they are sorted alphabetically). You can read the macros_readme.txt if you want to learn about other available functions.

Quote:
Originally Posted by vcmohan
I have been trying to use this new tool for the last two days. I get some times errors even for opening DirectShowSource file but not always. Sometimes it just hangs. I also got a semipersistant ( for a few trials) error stating that an unexpected character [ was found. Now I am not getting this error without me doing any thing.May be My system is going bad
The way the sliders work internally is that whenever you preview the video, the program searches for chunks of text "[<...>]" and replaces it with the last number. So if you get an error about the unexpected character [, then either the program failed to properly find all the "[<...>]" text or there is an extra bracket somewhere in the script (the AviSynth language does not use brackets).

Quote:
Originally Posted by vcmohan
I have tried using some thing like this.
fht = a.height() or 480 and tried putting this in the maximum value of a parameter like.
[<"hmax",0,fht,20>]. But I got an slider error stating invalid entry. As shown in one Macro it should be possible to get these values as fht=avsp.GetHeight() and use. Will it be required each time to %,...%...%.>], fht, fht, fht)
Your example of using an AviSynth variable fht for a slider parameter will currently not work, since it would require either directly communicating with AviSynth or parsing the script syntax, of which my program does neither (although it's a good idea for the future). Basically, you will run into the least amount of trouble if you create user sliders with the dialog box (in the right-click menu, or use keyboard shortcut F12). Looks like it might be annoying for the script you're trying to make, but that's the way it is for now . Note that the macro example you brought up, avsp.GetHeight(), is getting info from the script's output, as opposed to getting info internally from AviSynth itself. I guess it's important to keep in mind that the user sliders aren't very sophisticated, they just allow a way to define a slider with a min and max numerical value, it actually has very little to do with AviSynth specifically. If you're still getting issues with slider bars, post your entire script here.

Quote:
Originally Posted by vcmohan
Is there a way to select true or false entry with radio buttons may be?
If my string of params have some true/ false, some integer variables, some string variables how can I input the string variable and bool value in the param specification?As below?
Myplugin( reverse = false, option = "one", xx=[< "xx",0,100,4>],...)
It's not currently possible, but it's a good idea, one that I've thought about occasionally. It took me quite a while to determine a syntax for the current style of user sliders that was both flexible and easy to understand, it's probably take a lot of work to extend the syntax without blowing up the complexity. I'll try and think about it some more.
qwerpoi is offline   Reply With Quote
Reply


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 14:36.


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