View Full Version : avsWARP
Sirber
9th August 2003, 20:34
Hi
Where can I get a fresh copy of avsWARP.dll? There is no post about it, and also no infos on google :confused:
AmiRage
9th August 2003, 23:26
I don't know this DLL (and don't believe one with this name exists), but maybe you'll find what you're looking for at:
http://www.avisynth.org/~warpenterprises/
Wilbert
10th August 2003, 15:05
What does it do?
Sirber
10th August 2003, 18:03
It opens an AVS and return some infos, like rez, length, etc. Usefull to get by programmation these infos. The problem is that it hang on my system and I can't find any updates for it.
Lefungus
10th August 2003, 18:06
maybe you could replace it by
info()
Sirber
10th August 2003, 19:10
Info return infos inside the AVI, and I can't extract that :)
stickboy
10th August 2003, 21:40
Originally posted by Sirber
It opens an AVS and return some infos, like rez, length, etc. Usefull to get by programmation these infos. The problem is that it hang on my system and I can't find any updates for it. In what format does it return it?
Can't you use Width(), Height(), FrameCount(), and FrameRate() to retrieve the information you want?
Also, from where did you get avsWARP? Who's the author?
Sirber
11th August 2003, 16:16
Originally posted by stickboy
Can't you use Width(), Height(), FrameCount(), and FrameRate() to retrieve the information you want?I can't find those commands on AVISynth website. How can I use that?
stickboy
11th August 2003, 18:37
They're clip properties (http://www.avisynth.org/index.php?page=ClipProperties). (Not everything's a filter!)
Width(clip) (or clip.Width()) yields an integer representing the width of clip in pixels.
You may also be interested in String() and Value() (http://www.avisynth.org/index.php?page=ScriptFunctions), which convert from numeric values to strings and back.
Sirber
11th August 2003, 19:09
ok, and how can I get them outside of AVISynth?
stickboy
11th August 2003, 19:42
What do you mean?
Would you mind explaining exactly how your avsWARP plug-in worked?
Sirber
11th August 2003, 20:31
1) I load the DLL
2) With avsWARP class
a) I create and load an AVS
b) I use functions to return my infos
3) I unload the class
I need to get infos from a source (AVI/MPG/OGM/MKV) from AAVISynth and return that infos in a Delphi project.
Wilbert
11th August 2003, 21:00
It's possible to write that info to a text-file using the call-filter. See:
http://forum.doom9.org/showthread.php?s=&threadid=46506&perpage=20&pagenumber=2
loadplugin("call_25.dll")
v=avisource("Tape 1 - Clip 001.avi")
r="Report: "+"%time%"+" "+"%date%"+" " "#duh, how LF or CR to put rest of report on new line after report header???
fct= "Framecount: "+ string(v.framecount)+"
frt="Framerate: "+ string(v.framerate)+" "
w="Width "+ string(v.width)+" "
h="Height "+ string(v.height)+" "
a="Audiorate "+ string(v.audiorate)+" "
sendout=r+fct+frt+w+h+a
testcmd="cmd /c Echo " +sendout+ " > d:\test.txt"
Call(BlankClip,testcmd,"-2")
return(v)
Maybe this is of any help?
Sirber
11th August 2003, 23:26
@Wilbert
Thanks a lot, this will simplify my code :D
Sirber
4th October 2003, 01:34
I'd like to output a INI file. how can I add "\n" (return) after each lines?
Wilbert
4th October 2003, 16:05
Just put it in the beginning of a line (maybe it also works after it), example:
hdr = "'"
avifname = "from_hell"
AVISource("F:\Temp\Test3\xvid.avi").Trim(0,24)
v = last.ConvertToYV12()
FmCt = "\nFramecount = "+ string(v.framecount)
FmRt = "\nFramerate = "+ string(v.framerate)
w = "\nWidth = "+ string(v.width)
h = "\nHeight = "+ string(v.height)
a = "\nAudiorate = "+ string(v.audiorate)
StTime = "\nStart Time \t" # < \t outputs the current time
FinTime = "\nFinish Time \t"
Dte = (Time("Date: %A %x Time: %I:%M:%S %p")) #this from chr.dll
RptHdr = "REPORT: "+dte +"\nFilename: "+avifname+ StTime
stuff = RptHdr+Fmct+FmRt+w+h+a
Call(v,"C:\Program Files\AviSynth25\plugins\nicecho.exe @F:\report.txt " +hdr + stuff + hdr, "-2") #runs before video
Sirber
4th October 2003, 16:31
ok
I have 2 more questions:
1) What's the difference between nicecho and echo?
2) Is there a way to execute AVS script outside of a player? I want to execute a code similar to the one you made, but I don'w want to launch MPC for that :)
Wilbert
5th October 2003, 14:49
I was under the impression that you can't make those returns in echo, maybe I'm wrong though. Besides that, I don't know what the difference is.
2) Is there a way to execute AVS script outside of a player? I want to execute a code similar to the one you made, but I don't want to launch MPC for that :)
Don't know.
DDogg
5th October 2003, 16:49
http://forum.doom9.org/showthread.php?s=&threadid=62623
WarpEntrerprises has done a nice piece of work that may further simplify your task. He has added a write() command to chr.dll
Echo is built into CMD, whereas nicecho is a small standalone program designed for use with his call command dll.
There is a later example of call and nicecho that may be have more information here dated 27 March 2003:http://forum.doom9.org/showthread.php?s=&threadid=46506&perpage=30&pagenumber=2
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.