Log in

View Full Version : Is there an upcoming AVI batch mode?


FredThompson
19th May 2003, 09:44
The posts I've found on this all talk about running through the audio transcode and then manually making a batch file.

I'm looking for a way to take AVI files and, essentially, hand them to AVI2SVCD with the FitCD plugin and let em rip with a common set of configurations (audio bitrate, deinterlace, etc.)

Most of these are 47-55 minutes each and I've got hundreds. The manual method, as outlined, would take a heck of a lot of time.

Plan is to run my old videotapes through an external MPEG2 encoder then frameserve them with multiple instances of VirtualDubMod with filters to AVI2SVCD to make CVDs.

I've already tested this and it takes around 2 hours to get a good copy per 50 minutes of source video.

Thing is, I'd like to set it up so 4 or more would be run in sequence. That way, it could run through the night very efficiently.

Is there a way to do this?

onisama
19th May 2003, 14:29
You said how to do it yourself. Start your conversion. When the audio extraction starts close DVD2SVCD by clicking the "x" in the top right corner. When the audio extraction is finished D2S will close itself. Do this for each .avi file you want to convert (it doesn't really take that long), placing each conversion in a different folder.

Now that's finished, you need to edit the batch file, which is done from the DVD2SVCD folder on your start menu. Here is a batch file I made yesterday and ran last night.

Start /WAIT C:\PROGRA~1\DVD2SVCD\DVD2SVCD.exe -d2s:"C:\Documents and Settings\BadAss\Desktop\dvdtemp\o5\ep6\dvd2svcd project file.d2s" -run -exit
Start /WAIT C:\PROGRA~1\DVD2SVCD\DVD2SVCD.exe -d2s:"C:\Documents and Settings\BadAss\Desktop\dvdtemp\o5\ep7\dvd2svcd project file.d2s" -run -exit
Start /WAIT C:\PROGRA~1\DVD2SVCD\DVD2SVCD.exe -d2s:"C:\Documents and Settings\BadAss\Desktop\dvdtemp\o5\ep8\dvd2svcd project file.d2s" -run -exit


The parts in bold are the folder locations for each file you want to convert.

Then run the batch file, also done from the DVD2SVCD folder on the start menu, and Wollah!, it's a batch conversion.

This the only way I know of you can do a batch .avi conversion, and it doesn't take a lot of time as you claim, actually it's very quick and easy considering what you would have to do w/out the batch mode. I'm not sure how this will work frameserving from Vdub, because I use Avisynth and let DVD2SVCD create the avs file for me.

You can also edit the .ini file to create a "settings.ini" file for your .avi group. Set up DVD2SVCD the way you want it and click save settings under the "Misc" tab. Open that settings file in notepad. Look toward the end of the file and you should see something like this:

Avisynth Setup=BicubicResize

Below that will be a series of frameserver setups. You can create your own and paste them into you file, then save it, and load it into DVD2SVCD under teh "Misc" tab. Here are a few I use for .avi files:

[AVISYNTH_BicubicResize with TemporalSmoother (4:3 NTSC)]
0=TemporalSmoother(^Strength,^Radius)
1=BicubicResize(480,480,^b_value,^c_value)
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6

[AVISYNTH_BicubicResize with TemporalSmoother (4:3 -borders- NTSC)]
0=TemporalSmoother(^Strength,^Radius)
1=BicubicResize(480,360,^b_value,^c_value)
2=AddBorders(0,60,0,60)
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6

[AVISYNTH_BicubicResize with TemporalSmoother (16:9 NTSC)]
0=TemporalSmoother(^Strength,^Radius)
1=BicubicResize(480,288,^b_value,^c_value)
2=AddBorders(0,96,0,96)
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6

[AVISYNTH_BicubicResize with TemporalSmoother (4:3 PAL)]
0=TemporalSmoother(^Strength,^Radius)
1=BicubicResize(480,576,^b_value,^c_value)
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6

[AVISYNTH_BicubicResize with TemporalSmoother (4:3 -borders- PAL)]
0=TemporalSmoother(^Strength,^Radius)
1=BicubicResize(480,456,^b_value,^c_value)
2=AddBorders(0,60,0,60)
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6

[AVISYNTH_BicubicResize with TemporalSmoother (16:9 PAL)]
0=TemporalSmoother(^Strength,^Radius)
1=BicubicResize(480,384,^b_value,^c_value)
2=AddBorders(0,96,0,96)
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6


Here's another one I use for interlaced DVD's:

[AVISYNTH_BicubicResize with TemporalSmoother and telecide]
0=LoadPlugin(!Decomb.dll)
1=Telecide(guide=^Guided,gthresh=^G,chroma=?Chromaa,threshold=^Thresh)
2=Decimate(cycle=^Motocycle)
3=TemporalSmoother(^Strength,^Radius)
4=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
!Decomb.dll=C:\Program Files\DVD2SVCD\InverseTelecine\Donald Graft\Decomb.dll
^Guided=1
^G=50
?Chromaa=true
^Thresh=30
^Motocycle=5
^Strength=2
^Radius=1
^b_value=0.0
^c_value=0.6

If you add your own interlaced filter to the avs as I did above you will have to run pulldown by hand.

I'm sure it could be set up to work with FitCD plugin in the same fashion :confused: . Check the advanced section of the forum.

FredThompson
20th May 2003, 01:24
Wow, thanks for the details.

You said to abort during the audio extraction. I was thinking AVI2SVCD had to finish the transcoding.

The time assumption was based on 6 videos at about 50 minutes each and about 5 minutes to do each one through transcoding.

6 x 5 = 30 minutes/day

30 minutes isn't much considering 6 hours of source but it's still a requirement that's a little more demanding than putting items in a processing queue.

I'm looking at about a year to finish the conversions so it adds up.

Will give it a shot.

Would be cool if there was a way to have a batch that would start AVI2SVCD, passing arguments and waiting for completion before doing the next one.