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 Search this Thread Display Modes
Old 23rd November 2007, 18:43   #1  |  Link
dum
Registered User
 
Join Date: Nov 2007
Posts: 27
Determine video stream saving in the script

Hi, cannot someone tell me: can I determine (or even - have some influence) on file videofile saving in my script. For example I have script like this:

Code:
AVISource("some.avi")
#
# Make necessary transformations of avi-file
#
and after all this I want to save it to the file, without using "Save as..." option of VirtualDubMod (I use this one, but it doesn't matter), because I want to make a king of automation. Is it possible? What opportunities I have? What functions I have to read about?
dum is offline   Reply With Quote
Old 23rd November 2007, 18:51   #2  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
short answer: No

Not from within the script at least unless you use a special filter that can interact with the program that opened the AviScript and I'm not aware of such a special filter.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/
tsp is offline   Reply With Quote
Old 25th November 2007, 15:23   #3  |  Link
dum
Registered User
 
Join Date: Nov 2007
Posts: 27
Does anyone know and can give me the reference to the filter, which can help my?
dum is offline   Reply With Quote
Old 25th November 2007, 15:28   #4  |  Link
smok3
brontosaurusrex
 
smok3's Avatar
 
Join Date: Oct 2001
Posts: 2,392
you can avtomate virtualdub throught the use of vdub.exe (dunno if that was there in virtualdubmod era thought).

example windows .bat, save audio:

Code:
rem purpose - to extract audio to separate file where it can be procesed further

@ECHO OFF
echo ------------------------------------ vdub extract audio to pcm 
title extract audio to pcm %1

echo VirtualDub.Open(VirtualDub.params[0]); > "%~dp1%~n1.script"
echo VirtualDub.SaveWAV(VirtualDub.params[1]); >> "%~dp1%~n1.script"

@vdub /i "%~dp1%~n1.script" "%~dp1%~n1%~x1" "%~dp1%~n1.wav"

del "%~dp1%~n1.script"
smok3 is offline   Reply With Quote
Old 26th November 2007, 03:36   #5  |  Link
dum
Registered User
 
Join Date: Nov 2007
Posts: 27
Ok, yes I can do like this. But, nevertheless, may be someone knows the avisynth filter, which exactly saves video data to AVI file (in other words - saves file, having PClip)?
dum is offline   Reply With Quote
Old 26th November 2007, 08:22   #6  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
Something like the twriteavi filter? You still need something to play through the script (hint: search for avsutil). Avisynth is designed to frameserve, not write files itself.
squid_80 is offline   Reply With Quote
Old 26th November 2007, 23:58   #7  |  Link
dum
Registered User
 
Join Date: Nov 2007
Posts: 27
Thanks a lot! Exactly what I have meant (if someone know any other filters like this - please, let me know).

But, squid_80, what do you mean, when you say that I'll "need something to play through the script"?
dum is offline   Reply With Quote
Old 27th November 2007, 02:20   #8  |  Link
squid_80
Registered User
 
Join Date: Dec 2004
Location: Melbourne, AU
Posts: 1,963
It won't write a whole avi file as soon as the script is opened, you have to view all the frames so that they are processed by the filter and written out.
squid_80 is offline   Reply With Quote
Old 29th November 2007, 01:06   #9  |  Link
dum
Registered User
 
Join Date: Nov 2007
Posts: 27
Someone knows any other filters like that TWiteAvi, which write video stream to the file, from AviSynth script?
dum is offline   Reply With Quote
Old 29th November 2007, 03:35   #10  |  Link
dum
Registered User
 
Join Date: Nov 2007
Posts: 27
squid_80, can you please send me a working sample script, which uses TWriteAvi. Thank you beforehand.
dum is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 15:16.


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