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 Display Modes
Old 10th October 2006, 18:53   #281  |  Link
rfmmars
Registered User
 
Join Date: Feb 2004
Posts: 729
"In the script you posted you are missing a comma between the shift_u and the shift_v slider.

If that doesn't solve the problem, then try these things out. First, you should make sure that you don't have any other sliders in your script with the same names. Second, you should get rid of ALL user sliders, and test whether the filter behaves as you expect when you change the numbers manually. If this does not solve the problem, then you may need to post some screenshots, since I am not certain about the expected behavior of the hdr agc filter."


Sorry for the comma missing but that made no difference. I deleted all non "HDRagc" scripting and the problem remained.
Moving the "shift functions to an earlier position of the code line gives an "avisynth" error with no other information. The same script without the AVSp notation works fine. All the sliders appear but the first shift slider acts like a colour level control, and the second does nothing.

I will post a picture but I don't think it will help.

Richard
rfmmars is offline   Reply With Quote
Old 10th October 2006, 23:39   #282  |  Link
Ignus2
Registered User
 
Join Date: Dec 2005
Posts: 49
Great program! Just what I needed, EXACTLY what I needed.
Thank you for it!

And now my problem:
The video preview always closes, when I switch tabs.
Is this intended?

--
Greets,
B.
Ignus2 is offline   Reply With Quote
Old 10th October 2006, 23:59   #283  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by rfmmars View Post
Sorry for the comma missing but that made no difference. I deleted all non "HDRagc" scripting and the problem remained.
Moving the "shift functions to an earlier position of the code line gives an "avisynth" error with no other information. The same script without the AVSp notation works fine. All the sliders appear but the first shift slider acts like a colour level control, and the second does nothing.

I will post a picture but I don't think it will help.

Richard
The reason I need a picture is that since I'm not familiar with the filter, I can't tell whether the slider is working or not based on the output video. So if you could post a picture of AvsP with a script with no sliders, and another picture of AvsP with a script with the problematic slider set to the same value, I can see for myself how the video outputs are different when they should be the same. Also, it would help if you could post any scripts that cause unexpected errors.

Quote:
Originally Posted by Ignus2 View Post
The video preview always closes, when I switch tabs.
Is this intended?
The video preview will close when you switch tabs IF the two videos do not have similar properties (same width, height, and framecount). This is done to avoid any confusing behavior when comparing multiple script outputs. I would give you a link to the online docs for more info, but avisynth.org is down for the moment .
qwerpoi is offline   Reply With Quote
Old 11th October 2006, 01:51   #284  |  Link
rfmmars
Registered User
 
Join Date: Feb 2004
Posts: 729
[QUOTEThe reason I need a picture is that since I'm not familiar with the filter, I can't tell whether the slider is working or not based on the output video. So if you could post a picture of AvsP with a script with no sliders, and another picture of AvsP with a script with the problematic slider set to the same value, I can see for myself how the video outputs are different when they should be the same. Also, it would help if you could post any scripts that cause unexpected errors. .[/QUOTE]

I have shorten the script, it all shows in each pic.

Here are the shots, The first is without the Shift_xxx sliders, everthing is normal

http://www.uploading.com/files/QKMVI...hift.jpeg.html

Here is the problem, the one shift slider act like a level control, depending where you put it, is effect is never correct but different, even alone, and the other has no effect, good or bad.

http://www.uploading.com/files/6SAR87OW/Shift.jpeg.html

This is what it should look like. The shift settings are manually set

http://www.uploading.com/files/MGZ7W...ualyy.jpeg.htm

I am not saying its your program, I am looking for a solution, and the problem may be with HDRagc.

Richardl
rfmmars is offline   Reply With Quote
Old 11th October 2006, 02:20   #285  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by rfmmars View Post
I have shorten the script, it all shows in each pic.

Here are the shots, The first is without the Shift_xxx sliders, everthing is normal

http://www.uploading.com/files/QKMVI...hift.jpeg.html

Here is the problem, the one shift slider act like a level control, depending where you put it, is effect is never correct but different, even alone, and the other has no effect, good or bad.

http://www.uploading.com/files/6SAR87OW/Shift.jpeg.html

This is what it should look like. The shift settings are manually set

http://www.uploading.com/files/MGZ7W...ualyy.jpeg.htm

I am not saying its your program, I am looking for a solution, and the problem may be with HDRagc.

Richardl
Thanks for posting the pics! It looks like the HDRAGC plugin has all optional arguments, so you must specify the names if your arguments are not in the default order. Something like this script should fix your problem:
Code:
AVISource("C:\hdragc.avi")
HDRAGC(shift_u=[<"shift_u", -30, +30, -22>], shift_v=[<"shift_v", -30, +30, -2>])
Most likely you got accidentally confused with the slider name and the optional argument name - the user sliders do not automatically input optional argument names into the filter. Let me know if there are still issues.
qwerpoi is offline   Reply With Quote
Old 11th October 2006, 02:25   #286  |  Link
rfmmars
Registered User
 
Join Date: Feb 2004
Posts: 729
Quote:
Originally Posted by qwerpoi View Post
Thanks for posting the pics! It looks like the HDRAGC plugin has all optional arguments, so you must specify the names if your arguments are not in the default order. Something like this script should fix your problem:
Code:
AVISource("C:\hdragc.avi")
HDRAGC(shift_u=[<"shift_u", -30, +30, -22>], shift_v=[<"shift_v", -30, +30, -2>])
Most likely you got accidentally confused with the slider name and the optional argument name - the user sliders do not automatically input optional argument names into the filter. Let me know if there are still issues.
Just super, that did it...........EXCELLENT

Richard
rfmmars is offline   Reply With Quote
Old 11th October 2006, 07:28   #287  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
avisynth.org may be down, but we must continue onwards! New version 1.2.1, get it from here (rapidshare). It's another big changelog:

Quote:
* custom syntax highlighter, more than 30 individually configurable fonts/colors

* added ability to override all fonts with a monospaced font (suggested by Richard Berg)

* added recent files menu (suggested by check)

* added shortcut for moving lines up/down (suggested by communist)

* added method to disable video preview (suggested by Alain2)

* added option to specify initial line margin width (suggested by nibbles)

* added optional arguments to pass to external player

* updated several macro functions, see new examples and macros_readme.txt for info

* added option to disable frequent calltips, show only upon typing open parentheses

* added ability to use keyboard shortcut for filter help file (suggested by Alain2)

* added option to wrap the text (suggested by Alain2)

* added option to highlight current line (suggested by Alain2)

* added 25% and 50% zoom levels (suggested by communist)

* moved line-by-line update mode to menu option, to allow for keyboard shortcut

* changed data format for options files to editable text files

> fixed minor bug with improper video updating (thanks nibbles)

> fixed small mistakes with some messages (thanks zemog)

> fixed minor bug with tabs and spaces

> fixed minor bug with session saving/loading

> cleaned up minor issues with tooltip code
The biggest change is the custom syntax highlighter which I finally got around to implementing. All the tiny issues with things like triple-quoted strings and % coloring should be handled properly now. You can configure practically every font and color in the menu option "Options -> Fonts and colors...". The info is stored in a separate file, textstyles.dat. Be aware that I implemented the highlighting code in Python, not c++, so it may be slower (I didn't notice any performance issues). If it turns out that there are issues with the new highlighter, you can revert back to the old one in "Options -> Program settings..." under the "Misc" tab.

Another noteworthy change is that you can now have as many external players that you want, via macros. There's a new sample macro called "Secondary player.py", make a copy of it and change the exe path and arguments to whatever you need. There are also new sample macros which show how to feed the current script in AvsP to an encoding program, good stuff if you use command-line encoders.

One final thing I'll mention is that now the data format for the options files is text instead of binary. It's not necessarily human readable (not much worse than xml imo ), but it is editable if that sort of thing is appealing to you.

As always, with big changes come big bugs, so report back with any problems with the new version.

Last edited by qwerpoi; 11th October 2006 at 21:01.
qwerpoi is offline   Reply With Quote
Old 11th October 2006, 17:27   #288  |  Link
niiyan
Registered User
 
Join Date: Sep 2002
Posts: 84
@qwerpoi
When I type ")", AvsP v1.2.1 always displays "(".
niiyan is offline   Reply With Quote
Old 11th October 2006, 18:12   #289  |  Link
Henrikx
Registered User
 
Henrikx's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 297
Update German translation to AvsP 1.2.1
__________________
Henrikx
Henrikx is offline   Reply With Quote
Old 11th October 2006, 21:07   #290  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by niiyan View Post
@qwerpoi
When I type ")", AvsP v1.2.1 always displays "(".
Whoa, that's a big problem! I believe it only affects certain non-us keyboards, sorry about that. I updated the links with a fixed version (same version number, does not affect translation work), you can get it here. Just to be clear, if you are not experiencing this problem, there is no reason to re-download version 1.2.1.

Quote:
Originally Posted by Henrikx View Post
Update German translation to AvsP 1.2.1
Wow, that was fast, I thought this one would take a bit longer, there were a lot of new messages! Hope you are liking the new version.
qwerpoi is offline   Reply With Quote
Old 11th October 2006, 21:36   #291  |  Link
Henrikx
Registered User
 
Henrikx's Avatar
 
Join Date: Aug 2005
Location: Germany
Posts: 297
@qwerpoi
The sense of the sentence in German language is sometimes difficult. Example : Triple-quoted string..but a Thread ,called Translate Technical terms, by Forum Gleitz help me much ...special LigH and Doxville

Therefore I only can answer No to
Quote:
I thought this one would take a bit longer
and Yes to
Quote:
Hope you are liking the new version.
__________________
Henrikx
Henrikx is offline   Reply With Quote
Old 11th October 2006, 22:55   #292  |  Link
communist
Registered User
 
Join Date: Jul 2003
Posts: 1,141
Quote:
Originally Posted by qwerpoi View Post
Just to be clear, if you are not experiencing this problem, there is no reason to re-download version 1.2.1.
Thanks! English XP SP2 with german keyboard setup, had the problem - was fixed with the 'latest' 1.2.1.

New version just rocks!
communist is offline   Reply With Quote
Old 11th October 2006, 23:23   #293  |  Link
krisq
Registered User
 
Join Date: Dec 2003
Location: Poland
Posts: 171
Excellent update, as always
Thanks!
__________________
(!sig)
krisq is offline   Reply With Quote
Old 12th October 2006, 02:35   #294  |  Link
Alain2
Registered User
 
Join Date: May 2005
Posts: 236
French translation updated

Good work again ! Thank you

Do you think it would be possible to make the video window independant of the editor window, and maybe put the sliders / block tick boxes in a separate window or to the right of the editor window, with a fixed width selectable in the options ? That way the sliders wouldn't change when we resize AvsP window or when the video window is resized. Also this may enable an easy video resizing with its window size ^^ (ok that's the last time I bother you with this video preview resizing business ^^)

Let me quickly explain how I usually compare filters effects in a script : What I usually do is to use the interleave function (or my own clipcomp script); a simple script like this would be:
Quote:
mpeg2source("mov.d2v")
# some filters here..
a=last
filter1(arg1=a,..)
b=last
a
filter1(arg1=b,..)
interleave(b.subtitle("a"),last)
I open this in vdubmod, find some interesting positions to look at, and flick through the interleaved frames to see the différences (thanks to avosynth keeping in a buffer the frames it's possible to go back and forth at a position very quickly when the frames have been processed once). That way it's very fast so you clearly see the effect (I often resize with a 1:1 ratio the vdubmod window to the width of my screen to beeter see the effect). And to change an argument and see the effect I just do alt+tab to come back to n++, do the change, alt+tab to come back to vdubmod, and hit F5 to refresh at the current position. This proves very effective, and I am nearly able to do it with AvsP.

What I currently don't like with the duplication of a script in several tabs for comparing is that although it's fast to switch tabs, everytime I seek to a new position, all scripts need to be reloaded to that position, and with slow filters (motion compensation etc) it is rather slow to reload all these full scripts rather than the interleave function (that save rebuilding all filters before the part you're interested in, and avoids duplicating frames in memory at a position as its only one clip that contains it all). But I love everything else in AvsP ^^ That's why if I could reproduce something similar to what I have with n++/vdubmod, I would be really happy; but if you don't do it I understand, I am probably in minority for this request anyway, and all the syntax highlighting + calltips + filters help access you've added to AvsP already qualify it as an excellent avisynth dedicated editor that will very effectively replace my n++ for avs editing

Ah a small thing: when I toggle the disable preview window, it first goes back to frame 0 and then switch it off, thus it takes some time to go to frame 0, and it looses the current position..
Alain2 is offline   Reply With Quote
Old 12th October 2006, 03:27   #295  |  Link
qwerpoi
Registered User
 
qwerpoi's Avatar
 
Join Date: Oct 2002
Posts: 298
Quote:
Originally Posted by communist View Post
Thanks! English XP SP2 with german keyboard setup, had the problem - was fixed with the 'latest' 1.2.1.

New version just rocks!
Whew, glad that is fixed now, and glad you like the new version .

Quote:
Originally Posted by krisq View Post
Excellent update, as always
Thanks!
You're welcome, as always!

Quote:
Originally Posted by Alain2 View Post
French translation updated
Excellent! Thanks!

Quote:
Originally Posted by Alain2 View Post
Do you think it would be possible to make the video window independant of the editor window, and maybe put the sliders / block tick boxes in a separate window or to the right of the editor window, with a fixed width selectable in the options ? That way the sliders wouldn't change when we resize AvsP window or when the video window is resized. Also this may enable an easy video resizing with its window size ^^ (ok that's the last time I bother you with this video preview resizing business ^^)
No, it's a valid request, and it's probably the next big thing I need to work on. As I mentioned in an earlier post, the way the preview and sliders are currently layed out works fine with me, but I certainly can understand how it is not ideal when working with large resolution files. It won't be easy to rearrange all the layout code, but it's something I will have to do eventually (but I can't make any guarantees as to when, let's just say it's getting near the top of my todo list).

Quote:
Originally Posted by Alain2 View Post
Let me quickly explain how I usually compare filters effects in a script : What I usually do is to use the interleave function (or my own clipcomp script); a simple script like this would be:
I open this in vdubmod, find some interesting positions to look at, and flick through the interleaved frames to see the différences (thanks to avosynth keeping in a buffer the frames it's possible to go back and forth at a position very quickly when the frames have been processed once). That way it's very fast so you clearly see the effect (I often resize with a 1:1 ratio the vdubmod window to the width of my screen to beeter see the effect). And to change an argument and see the effect I just do alt+tab to come back to n++, do the change, alt+tab to come back to vdubmod, and hit F5 to refresh at the current position. This proves very effective, and I am nearly able to do it with AvsP.

What I currently don't like with the duplication of a script in several tabs for comparing is that although it's fast to switch tabs, everytime I seek to a new position, all scripts need to be reloaded to that position, and with slow filters (motion compensation etc) it is rather slow to reload all these full scripts rather than the interleave function (that save rebuilding all filters before the part you're interested in, and avoids duplicating frames in memory at a position as its only one clip that contains it all).
I see the problem, but I'm not sure what the solution would be. Clearly you can use the interleave function in AvsP in a single tab just like you would when using notepad++/vdub, it would be identical. As far as I see it, using multiple tabs requires loading multiple frames (the first time), I don't see any other way around it. Perhaps I'm misunderstanding your request, so feel free to correct what I'm saying here.

Quote:
Originally Posted by Alain2 View Post
Ah a small thing: when I toggle the disable preview window, it first goes back to frame 0 and then switch it off, thus it takes some time to go to frame 0, and it looses the current position..
Yeah, this was done to avoid strange behavior when changing scripts. In other words, if you disable the preview and it stays at frame 5000, then you switch tabs to a script with only 200 frames, the video slider is in a position which doesn't exist. If you think that behavior is acceptable, I'll do some tests to see if it doesn't cause any problems and change the behavior in the next release.
qwerpoi is offline   Reply With Quote
Old 12th October 2006, 04:02   #296  |  Link
Pookie
Registered User
 
Join Date: Apr 2005
Posts: 1,341
MonoSpaced Fonts for the Masses

http://www.tobias-jung.de/seekingprofont/

http://www.proggyfonts.com/index.php?menu=download

http://www.netalive.org/tinkering/triskweline/
Pookie is offline   Reply With Quote
Old 12th October 2006, 06:54   #297  |  Link
Richard Berg
developer wannabe
 
Richard Berg's Avatar
 
Join Date: Nov 2001
Location: Jersey City, NJ
Posts: 1,211
Quote:
Yeah, this was done to avoid strange behavior when changing scripts. In other words, if you disable the preview and it stays at frame 5000, then you switch tabs to a script with only 200 frames, the video slider is in a position which doesn't exist.
Look at how VDub does it. When you refresh, the slider says 5000, which is obviously wrong, but hitting Left takes you to frame 199. That seems like a decent compromise.
__________________
Richard's blog
Need to host a video clip? Click here for temp upload space.
Richard Berg is offline   Reply With Quote
Old 12th October 2006, 09:29   #298  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 211
Many thanks for all of these
kypec is offline   Reply With Quote
Old 12th October 2006, 11:52   #299  |  Link
krisq
Registered User
 
Join Date: Dec 2003
Location: Poland
Posts: 171
Quote:
Originally Posted by qwerpoi
No, it's a valid request, and it's probably the next big thing I need to work on. As I mentioned in an earlier post, the way the preview and sliders are currently layed out works fine with me, but I certainly can understand how it is not ideal when working with large resolution files. It won't be easy to rearrange all the layout code, but it's something I will have to do eventually (but I can't make any guarantees as to when, let's just say it's getting near the top of my todo list).
I've been working with hdv files lately and that's exactly what came to my mind. Working with large resolutions would be so much easier with undockable preview window. So I second this request.
__________________
(!sig)
krisq is offline   Reply With Quote
Old 12th October 2006, 17:27   #300  |  Link
niiyan
Registered User
 
Join Date: Sep 2002
Posts: 84
@qwerpoi
I have no problem with the modified version. Thanks a lot.

And I updated Japanese translation. You can get it from the following links:
http://niiyan.net/?AvsP
http://niiyan.s8.xrea.com/blosxom/av...20-avsp-ja.htm

The files in these 2 pages are the same. But second page is written by Japanese (for Japanese users).
niiyan is offline   Reply With Quote
Reply

Thread Tools
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 01:01.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.