View Full Version : How do you save the script result?
whipdancer
30th December 2009, 04:36
but I can't find it spelled out...
When using a script (example):
LoadPlugin("SupTitle.dll")
clip = DirectShowSource("C:\test.wmv")
return clip.SupTitle("C:\test.sup", forcedOnly=false, swapCbCr=false)
What do I need to do to save the resulting video file? Or will the original file (test.wmv) now be affected (via the "return" statement in the script)?
Guest
30th December 2009, 06:16
Fix your thread title ASAP to avoid a rule 9 strike. Thank you.
The source file is not affected at all by your script.
loekverhees
30th December 2009, 17:31
You could open the .avs file in VirtualDub and save it from there.
whipdancer
30th December 2009, 17:45
Having spent several hours reading from avisynth.org - I think I am missing the encoder
If someone can clarify (or point me to a something that explains things simpler terms) that I'm heading in the correct direction, or not.
If loaded in a video player, the script can be used to display a given video with the specific filters applied. Nothing is permanently altered.
If loaded in an encoder, the script can be used as source for encoding to a new file. The end result should be the original source + the result any filters applied in a new file.
If that's the case, I've been using VirtualDub to learn avisynth. Is it the correct tool to do the encoding as well? Or is there a change I can make in my script?
Thanks,
~Whip
whipdancer
30th December 2009, 17:52
You could open the .avs file in VirtualDub and save it from there.
I'm sorry, but I feel completely stupid with all this. I see a bunch of options under the file menu, none of which are as simple as save...
Actually, I just saw "save as AVI" is an option. I'll give that a try.
Thanks,
~Whip
communist
30th December 2009, 18:08
Yes that is what you do. Make sure to select a compressor under Video -> Compression. Otherwise an uncompressed file will be written which will be very very big. Same for audio.
loekverhees
30th December 2009, 18:11
In VD, under Video>Compression, you can select any encoder that you like. If you just choose 'save as AVI', you're saving to an uncompressed format which will result in huge files. Instead, saving to XVID or x264 might be an option (in that case, the codecs XVID and x264 should be installed first).
Edit: Ah, communist posted a little earlier. :)
whipdancer
30th December 2009, 19:35
Based on both of your replies it sounds like the script I'm using does what I need. The "saving" part that I'm after is a function of the tool I'm using (VirtualDub) and not of the script.
It sounds like that I need to:
1. Learn more about VirtualDub (another forum/topic)
2. Continue to experiment with the samples from avisynth.org on how it works.
Thanks!
~Whip
Blue_MiSfit
30th December 2009, 22:05
If you want to view the results of your script, and edit it all at the same time - use the wonderful application "AvsP, which is sort of a GUI / IDE for AviSynth. Simply type in your script, and push F5 to render it. Then you can scrub around the timeline like a media player etc..
Once you have the script finalized you can encode the results using VirtualDub (if you want to use VFW to make AVIs), or a CLI encoder like x264 or ffmpeg. You can also use any number of GUIs like ripbot264, MeGUI, or Lord_Mulder's simple x264 GUI.
~MiSfit
whipdancer
31st December 2009, 04:51
If you want to view the results of your script, and edit it all at the same time - use the wonderful application "AvsP, which is sort of a GUI / IDE for AviSynth. Simply type in your script, and push F5 to render it. Then you can scrub around the timeline like a media player etc..
Once you have the script finalized you can encode the results using VirtualDub (if you want to use VFW to make AVIs), or a CLI encoder like x264 or ffmpeg. You can also use any number of GUIs like ripbot264, MeGUI, or Lord_Mulder's simple x264 GUI.
~MiSfit
Cool, thanks!
~Whip
StainlessS
8th January 2010, 02:05
Hi WhipDancer,
Dont want to overwhelm you with new things to try out, but,
VirtualDubMod is the better version of VirtualDub for usage with
Avisynth, It has a built in script editor for the AVS script. It does
crash sometimes due to errors in the avs script which make it
necessary to correct the error (in eg AVSP or AVSEdit or NotePad)
before retrying in VDMod. I have 3 versions of VD running side by
side without interfering with each other, VDMod is quite a lot older
than current the version, hence more than one ver$ in use.
The version you want is I believe:-
VirtualDubMod v1.5.10.2 (Build 2542)
cant remember where I got it from.
Gud Luck :)
Asmodian
9th January 2010, 00:53
VirtualDubMob is old and outdated, it is not recommended anymore.
I really like Lord_Mulder's simple GUI if you just want to save an avisynth script to a H.264 video. You can use 64bit x264 too which is a little faster.
The newer x264s are also as easy as (windows command line):
x264.exe --preset slow --tune film --crf 21 "video.avs" --o "video.mp4"
just change the 21 to a smaller number for a bigger higher quality file or larger for a smaller lower quality file (around 16-27 seems the normal range to me).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.