Log in

View Full Version : AutoTNG VOB to DivX frontend


NiteShdw
28th September 2006, 07:46
I've written a program for my own personal use that I figured I might as well share with anyone that's interested. I created the program to convert my TV shows on DVD to individual AVI files that I can watch on my TV through my D-Link DSM-320RD media player.

AutoTNG is a batch VOB to AVI (DivX) converter.
* Each batch item can be run through 2 or 3 encoding passes (each pass can have completely different encoding settings)
* Video preview
* You can cut out frames by setting the starting frame, ending frame, and an 'intro' sequence range
* Encoding can be done to a filesize or bitrate
* Audio can is either original AC3 or converted to ABR MP3

AutoTNG requires AVISynth, VirtualDubMod, BeSweet, and DGIndex. All the necessary files are included. I've never released this publically before, so I welcome comments.

AutoTNG can be downloaded here (http://www.nitescifi.com/dl/AutoTNG-complete.rar)

ricardo.santos
30th September 2006, 20:43
Hi NiteShdw

Thanks for releasing AutoTNG, when trying it it produced the follwing error, i downloaded autocrop to the TNG plugins folder but the error still appears.

Looks simple and easy to use

http://img524.imageshack.us/img524/7579/tngrv9.png (http://imageshack.us)

LoadPlugin("C:\Documents and Settings\Administrador\Ambiente de trabalho\AutoTNG\DGMPGDec\DGDecode.dll")
movie = mpeg2source("C:\STARGATE_DISK9_SKU1\VIDEO_TS\autoTEMP\VTS_01_1.d2v")
cropclip = autocrop(movie, mode=0,wmultof=4,hmultof=4,aspect=0,samples=10,threshold=34,samplestartframe=0,leftadd=8,rightadd=4,topadd=2,bottomadd=2)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width) / float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 448
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
LanczosResize(out_width, out_height)
ColorMatrix("Rec.709->Rec.601",mmx=true,hints=false)
ConvertToRGB32()

ricardo.santos
30th September 2006, 20:51
On my first try it loaded the vobs fine, parsed them, converted the audio and stopped at the video conversion

i tried a second time and it skiped the audio encoding, does it "detect" if the audio was already converted from the previous conversion or is it a bug?

NiteShdw
6th October 2006, 06:38
The plugins need to be copied into the AVISynth 2.5 plugins folder, usually in C:\Program Files\AVISynth 2.5\Plugins. I suppose that I should remove this requirement by including the plugins in the AVS script.

Secondly, the program does detect if it's already converted files previously.

ricardo.santos
6th October 2006, 12:39
Thanks, i've put autocrop inside the avisynth plugins folder inside TNG, instead of the main avisynth folder
Ill follow your advice.

thanks