Log in

View Full Version : open different avis with always same processing settings


olnima
30th June 2004, 12:02
Hi out there,
I want to open different avi-files with always the same processing settings (as I told in subject :-)

Here's my Script:

VirtualDub.Open("film.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0);
VirtualDub.stream[0].DeleteComments(1);
VirtualDub.stream[0].AdjustChapters(1);
VirtualDub.stream[0].SetMode(1);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression(85,44100,1,0,16000,1,12,"AQAEAAAAoQEBAAAA");
VirtualDub.stream[0].EnableFilterGraph(0);
VirtualDub.stream[0].filters.Clear();
VirtualDub.video.DeleteComments(1);
VirtualDub.video.AdjustChapters(1);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(-1,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();

Problem is that "film.avi" is not always film.avi / has different names. What I need is:

VirtualDub.Open(%1,0,0);

where %1 is the name of the avi given in a commandline like this:

virtualdubmod /s"test.vcf" film.avi

%1 in this case is film.avi

IS THAT POSSIBLE ???

Thanks in advance,
Olnima

olnima
30th June 2004, 13:28
It's possible with VirtDub and/or VirtDubMPEG2 because they doesn't use streams, only Video and Audio.

For the interested people here's my batch and my script:

batch:

virtualdub /s"test.vcf" %1
(where %1 is the name of the avi-file)

script (test.vcf):

VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(1);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression(85,44100,1,0,16000,1,12,"AQAEAAAAoQEBAAAA");
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(-1,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.audio.filters.Clear();

In VDMod You have streams which settings can only be done AFTER loading the *.avi. In VD or VD-Mpeg2 there's always a Video- and an Audiostream and the settings can also be done BEFORE loading the *.avi

Olnima

buzzqw
30th June 2004, 13:49
thanks for your information !

BHH