View Full Version : AvsP v2.0.2 (10/27/07)
Gavino
15th August 2009, 18:16
After a while there's a long list of Trims and I can no longer remember exactly which Trim in the return statement returns which footage.
What is the quickest way of sampling in random order the contents of individual Trims/clips? E.g. sample clip3's contents, sample the contents of clip1, sample the contents of clip2 and now you have a good idea of that part of the timeline?
You could set a bookmark at each splice point on the timeline and cycle through them with F2. (I think using the Trim editor sets them automatically.)
Regarding your audio issue, I take it the main problem is you want to cut based on the audio content and it's tedious finding the exact frame that corresponds to your desired cut point.
Here's a cheap and dirty solution that might at least help: add this to the end of your script (where it can easily be commented in and out):
ShowFrameNumber()
AssumeFPS(framerate/4, true)
Then when you play in an external player it will play at 1/4 speed, showing the frame numbers as it goes, which may make it easier to find the frame you want. (I said it was cheap and dirty. :))
fvisagie
17th August 2009, 08:57
I might suggest VirtualDubMod, which incorporates a simple AVS editor (one of the mods to the straight VirtualDub). This can insert Trims in the AVS for selected ranges.
Or set VirtualDubMod to be AvsP's "external player" and use both.
Using both proves to be cumbersome, even including displaying frame numbers (as Gavino also suggested, thanks).
Another complication is that the source is DV AVI containing DATECODEs that need to be preserved. Of course with any project where AVS does the final rendering this won't happen automatically. Extracting DATECODEs with DVInfo is presenting its own niggles - output isn't fully suppressed when DATECODEs are absent, and of course the issue for a newbie like me of getting it all programmed to work correctly in a complex editing project.
The simplest solution for now turned out to be straight VirtualDub - it provides synchronised real-time video + audio playback, all cutting can be done in a single interface, and it supports direct copy of unmodified frames, preserving their DATECODEs.
Thanks to all for your contributions and suggestions, I sincerely appreciate it.
maxhondur
17th August 2009, 09:15
Well, it seems like you're all set to go, but just for posterity's sake (and the fact that I love avsp), nine lines of text, ie the below AVSP macro
################
import time
trimmed = avsp.GetSelectionList()
originaltext = avsp.GetText()
avsp.SetText(originaltext+"\ntrim"+str(trimmed[0]), index=None)
avsp.SaveScript()
avsp.RunExternalPlayer(executable = 'C:\\some\\where\\mplayerc.exe' )
time.sleep(1)
avsp.SetText(originaltext, index=None)
avsp.SaveScript()
#################
should get you what you want, roughly? if you're in trim editing mode, and have two select points, call on the macro to play media player classic, and it'll play back the trimmed file. You can then adjust the trim points frame by frame as necessary, call the macro again, etc.
Two notes - I'm not a good coder, hence the code is pretty sloppy, but at the same time, it took about 3 minutes to write this up :p
Gavino
17th August 2009, 10:45
if you're in trim editing mode, and have two select points, call on the macro to play media player classic, and it'll play back the trimmed file.
Cool.
How would I change this to play back from the current frame position (outside of the trim editor)?
maxhondur
17th August 2009, 11:00
Probably just replace trim command to 'getframenumber'
######
import time
trimmed = avsp.GetFrameNumber()
originaltext = avsp.GetText()
avsp.SetText(originaltext+"\ntrim("+str(trimmed)+',0)', index=None)
avsp.SaveScript()
avsp.RunExternalPlayer(executable = 'C:\\some\\where\\mplayerc.exe')
time.sleep(1)
avsp.SetText(originaltext, index=None)
avsp.SaveScript()
#####
should work, worked on my machine
It got even more sloppy because I just cut and pasted stuff from my previous post :p
Gavino
19th August 2009, 00:31
Thanks for that, maxhondur - a very useful addition, especially when you add a keyboard shortcut.
For my use, I removed the two avsp.SaveScript() calls since I prefer not to overwrite the original file with temporary changes I may have made. (The player will then be invoked on temporary file preview2.avs)
PsiRadish
21st September 2009, 07:57
Request: Upload the source for the v2.0.2 bugfixes (http://avisynth.org/qwerpoi/AvsP_v2.0.2_bugfix3.zip). I'm having very poor luck finding a functional Python (2.5) decompiler :(
canuckerfan
24th September 2009, 00:26
Just wondering if anyone else is having issues with AvsP when using conditionfilter+conditionalreader? Whenever I exit after using these scripts AvsP never fully closes and reaches 50% cpu. It's not that big of a deal since I just end-task it but wondering if anyone else gets this too?
Gavino
24th September 2009, 10:54
Does this happen every time you use ConditionalReader/ConditionalFilter or does it depend on some additional factors such as for example
- length of input clip?
- size of file read by ConditionalReader?
- other filters used in script?
- number of tabs open in AvsP?
If you can reproduce the problem with a simple script and ConditionalReader input file, post it here.
canuckerfan
24th September 2009, 11:07
Does this happen every time you use ConditionalReader/ConditionalFilter or does it depend on some additional factors such as for example
- length of input clip?
- size of file read by ConditionalReader?
- other filters used in script?
- number of tabs open in AvsP?
If you can reproduce the problem with a simple script and ConditionalReader input file, post it here.
Okay. I finally got the chance to test this and it has occured.
-clip length = 266124 frames (a little over 3 hours)
-size of file read was 52 bytes (it had to process only 2 frames)
-no other filters used (except crop): actually, here's the entire script:
SetMemoryMax(768)
avisource("G:\Hindi Movies\Temp\DCH_ELITE\step26b.avi")
AddBorders(0,2,0,2)
Filtered = RemoveNoiseMC(rdlimit=41,rgrain=1,denoise=0,sharp=true)
ConditionalFilter(Filtered, last, "ABC1")
ConditionalReader("failed3-rd41.txt","ABC1",false)
Crop(0,2,0,-2)## 2 frames processed in this pass
-only 1 tab open (the one encoded)
espy2
26th September 2009, 11:35
AvsP's "Tools > Encode the video" runs H264.exe but I get the error message "unrecognised option: --progress".
Versions:
AvsP: 2.02
H264.exe: (reported by --version)
x264 0.76.1271M 496d79d
built by techouse on Sep 25 2009, gcc: 4.4.1 (x86.core2.Komisar)
Downloaded from http://x264.tk
Tried H264.exe on Pass-1 from commandline. When I removed "--progress" option it complained of "--no-psnr" option, then when that removed, the "--no-ssim" option.
Should I use some other version or variant of H264.exe? Or does AvsP need updating to reflect new version of H264?
Zarxrax
26th September 2009, 19:31
AvsP's support for x264 is outdated.
canuckerfan
15th October 2009, 08:22
Does this happen every time you use ConditionalReader/ConditionalFilter or does it depend on some additional factors such as for example
- length of input clip?
- size of file read by ConditionalReader?
- other filters used in script?
- number of tabs open in AvsP?
If you can reproduce the problem with a simple script and ConditionalReader input file, post it here.
Okay. I finally got the chance to test this and it has occured.
-clip length = 266124 frames (a little over 3 hours)
-size of file read was 52 bytes (it had to process only 2 frames)
-no other filters used (except crop): actually, here's the entire script:
SetMemoryMax(768)
avisource("G:\Hindi Movies\Temp\DCH_ELITE\step26b.avi")
AddBorders(0,2,0,2)
Filtered = RemoveNoiseMC(rdlimit=41,rgrain=1,denoise=0,sharp=true)
ConditionalFilter(Filtered, last, "ABC1")
ConditionalReader("failed3-rd41.txt","ABC1",false)
Crop(0,2,0,-2)## 2 frames processed in this pass
-only 1 tab open (the one encoded)
blazerqb11
25th January 2010, 01:21
I hope this is the right place to make a suggestion for the program. I was just dealing with a situation where I had to change a lot of file paths in avs scripts, and it made me wish AvsP had an option to replace a string in all open tabs instead of just the current tab. Any chance that could be implemented?
AlanHK
25th January 2010, 03:11
Any chance that could be implemented?
See the changelog at http://avisynth.org/qwerpoi/index.html
qwerpoi hasn't posted here or issued any updates for over 2 years, so it seems the project is dormant.
martin53
31st January 2010, 18:56
Since AvsP V2.0.2 would not run on my system with Windows 7, I recompiled it with Python 2.5.4 etc.
I called this build V2.0.2.1. It has no functional enhancements, it just works under (my) Windows 7.
Suggestions where this release can be published are welcome!
Sorry - I have no clue about Python or the functionality of AvsP. So please don't bother to ask me for enhancements.
It is not too complicated to get it running however. Just follow qwerpoi's doc: install Python (v2.5!), wxPython, Py2Exe and upx - that's all.
Floatingshed
1st February 2010, 14:38
I wonder if someone could tell me how to customise AvsP to select a source filter determined by the file extension.
e.g. I would like to open an ac3 file with nicac3source but AvsP always defaults to opening ac3 with directshowsource.
Thanks.
martin53
1st February 2010, 21:05
My standard .AVS file looks like this:
function GetScriptBasename() {
Try { assert(false) }
Catch(err_msg) {
err_msg = MidStr(err_msg, FindStr(err_msg, "(") + 1)
filename = LeftStr(err_msg, StrLen(err_msg) - FindStr(RevStr(err_msg), ",") - 4)
return filename
}
}
ProcessTemplate1(GetScriptBasename()+"")
This automatically determins the base name of the script. You guess right: the script base name is identical to the media file name that I want to open.
In the plugin directory, there is a file _myFunctions.avsi, containing the function ProcessTemplate1() besides other functions.
My ProcessTemplate1() itself is quite long. This is a stripped down essence:
function ProcessTemplate1(string name) {
function GetClip(string name) {
… …
Exist (name+".avi") ? AVISource(name+".avi") : last
Exist (name) ? DirectShowSource(name) : last
}
GetClip(name)
… …
}
You see that GetClip() tries to append various extensions to the base name of the script to find the file. As the last try, it just takes the base name itself. Remember that you can call the script myMovie.wmv.avs, so it would just open myMovie.wmv with DirectShowSource(). However, myMovie.avs would open myMovie.avi with AviSource()...
ANGEL_SU
6th February 2010, 17:39
I wonder if someone could tell me how to customise AvsP to select a source filter determined by the file extension.
e.g. I would like to open an ac3 file with nicac3source but AvsP always defaults to opening ac3 with directshowsource.
Thanks.
click Options->Extensin templates...
Zarxrax
12th February 2010, 18:39
Since AvsP V2.0.2 would not run on my system with Windows 7, I recompiled it with Python 2.5.4 etc.
I called this build V2.0.2.1. It has no functional enhancements, it just works under (my) Windows 7.
Suggestions where this release can be published are welcome!
There are a number of free file sharing sites you could upload it to. Megaupload, rapidshare, easyshare, zshare...
Tiberiust
13th February 2010, 20:14
@martin53
Several AvsP users finding it unuseable in Win7. Would be great if yu could sort it out....don't stop bcos of lack of encouragement :)
T
Gannjunior
2nd March 2010, 23:32
i'm using it under Windows 7 x64 and it works great!
ciao!
GibsonXXI
3rd March 2010, 11:57
Only thing about AvsP that I don't like is it's usage of the clipboard. In that it doesn't actually save changes to the clipboard like other apps. Close the program and try pasting a selection in a new instance to see what I mean.
That and it doesn't always automatically save changed files if you close the program without saving. In such instances it doesn't prompt you either. Only happened a few times, annoying nonetheless.
Otherwise, an indispensable tool.
doc_dvxm
22nd March 2010, 16:11
Hii There... I am using AvsP on Win 7 32 Bit platform and everything is fine..
I have to ask to develloppers: Can you add a shortcut for "Save image as..." - for example Shift + anything or Ctrl + anything?
Thanx in advance
tengo6dedos
22nd March 2010, 19:34
You will have better luck asking that in avspmod.
doc_dvxm
22nd March 2010, 21:04
You will have better luck asking that in avspmod.
Ok Thanx ...
bidmead
6th January 2011, 16:22
Gosh. This either means that AVsP has achieved perfection, or that a better Avisynth front end has turned up and everyone's migrated to it.
Or is this related to qwerpoi's disappearance? I lost contact with him in mid-2007. Does anyone know what's happened to him?
For me the AVsP/Avisynth combo remains absolutely the best movie editor of all time at any price. I'd love to get back in contact with qwerpoi.
--
Chris
szabi
19th December 2011, 17:38
Hi
How is it possible to insert more than one avi file in an avisource?
bye
szabi
Zarxrax
20th December 2011, 03:55
doc_dvxm: you can do this in avspmod, you just need to set up the shortcut under Options>Keyboard Shortcuts
bidmead: it seems qwerpoi is gone, but there is still a little bit of development going on, mostly thanks to Angel_Su.
szabi: you can join files together with ++
for example
AviSource("file1.avi")++AviSource("file2.avi")
bidmead
20th December 2011, 09:37
Yup, no sign of qwerpoi, alas. But the whole thing is now coming along nicely as AvsPMod over here: http://forum.doom9.org/showthread.php?t=153248&highlight=avspmod
--
Chris
Gavino
20th December 2011, 10:51
szabi: you can join files together with ++
for example
AviSource("file1.avi")++AviSource("file2.avi")
Since AviSource accepts multiple file names, you can also do
AviSource("file1.avi", "file2.avi", ...)
which seems more in line with the original question.
szabi
22nd December 2011, 19:20
Hi
Yeah i know it, my problem is this from menu: right click -> insert -> insert source only one file can be selected.
bye szabi
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.