Here's the script im working on...
# Universal DIVX/XVID TO DVD (Anamorphic eventually) Conversion Script... MH2360
AVISource("TestClip", false)
AspectRatio=(Width / Height)
NewHeight = (720 / Width) * Height
NewHeight = NewHeight * 1.33333 # 4:3 Aspect Ratio.
# need Anamorphic Calculation here
NewHeight = int(NewHeight / 2) # Make NewHeight an even number.
NewHeight = NewHeight * 2
BorderHeight = (576 - NewHeight) / 2 # Find the border Height.
LanczosResize(720, int(NewHeight))
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
AddBorders(0, BorderHeight, 0, BorderHeight)
ConvertToYUY2(interlaced=false)
I want to use this script to convert widescreen (640 x 272 etc..) AVI files to (PAL) anamorphic DVD resolution, only changing the input filename each time i use it. As it is, it seems to convert to 4:3 letterboxed OK. But I want to convert to Anamorphic. My guess is that i would have to multiply the height by 1.7777 (16/9).
+ Reply to Thread
Results 1 to 3 of 3
-
-
To keep the aspect ratio in check you would need to crop the height so its the correct ratio 16/9 in reguards to its width, then resize to to 720,480
So something like:
crop(width,width/(16/9))
resize(720,480)
if the avi's are already 16/9, then a simple resize would do, but I'm guessing you wanna make this generic.Ejoc's CVD Page:
DVDDecrypter -> DVD2AVI -> Vobsub -> AVISynth -> TMPGEnc -> VCDEasy
DVD:
DVDShrink -> RecordNow DX
Capture:
VirualDub -> AVISynth -> QuEnc -> ffmpeggui -> TMPGEnc DVD Author -
Ok, a revised script, which seems to work fine... Does someone want to check my numbrers.
# Universal DIVX/XVID TO PAL DVD Anamorphic Conversion Script... MH2360
AVISource("test.avi", false)
AspectRatio=(Width / Height)
NewHeight = (480 * 1.7777777)#................................. 16:9
NewHeight = (NewHeight / AspectRatio)
NewHeight = (NewHeight * 1.2) #................................. Adjust for PAL Output.
NewHeight = int(NewHeight / 2)#...................................Make NewHeight an even number.
NewHeight = (NewHeight * 2)
NewHeight = (NewHeight>576)?576:NewHeight#............. if Height > 576 then Height = 576
BorderHeight = (576 - NewHeight) / 2#...........................Find the border Height.
LanczosResize(720, NewHeight)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
AddBorders(0, BorderHeight, 0, BorderHeight)
ConvertToYUY2(interlaced=false)
AssumeFPS(25.000, false)
Similar Threads
-
Should i use and avisynth script for Dv ?
By smartel in forum Newbie / General discussionsReplies: 0Last Post: 10th Mar 2012, 08:29 -
Need Help with My AviSynth Script
By Enkidu in forum Newbie / General discussionsReplies: 3Last Post: 21st Jan 2011, 21:37 -
Avisynth Script Help
By jamhat in forum Video ConversionReplies: 2Last Post: 29th Nov 2009, 06:13 -
Avisynth script
By daz2712 in forum Video ConversionReplies: 2Last Post: 19th Aug 2009, 11:08 -
avisynth script
By magenta2007 in forum SVCD2DVD & VOB2MPGReplies: 7Last Post: 25th Sep 2007, 11:29