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
Register FAQ Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 28th February 2013, 21:32   #1  |  Link
sumawo13
Learning Avisynth user
 
sumawo13's Avatar
 
Join Date: Sep 2008
Posts: 79
SixLineResizer; DVD<->BD Conversion script

Code:
function slr(clip c,float par,float dar,int resx,int resy,float left,float top,float right,float bottom){
modx=isrgb(c)?1:2
mody=isrgb(c)||isyuy2(c)||isyv16(c)?1:2
lr=round((((c.height()*dar)-(c.width()*par))/2)/float(modx))*modx
tb=round(((((c.width()*par)/dar)-c.height())/2)/float(mody))*mody
c.addborders(lr,tb,lr,tb).bicubicresize(resx,resy,0,1,left,top,right,bottom)}
I'm working on a function to automate the process of converting the aspect ratio and frame size of Blu-ray material to DVD and back. I'm thinking of adding options for NNEDI and other HQ resamplers and possible even incorporating QTGMC and various IVTC filters into the function.

Right now the DAR, PAR and resolution are set directly, but I'm going to improve that with options for 'NTSC/PAL/HD720/HD1080', et cetera.

I have a lot of plans but I'm starting out small. I'd appreciate advisory on best practices, what I can do to improve my code, and any other criticism.
sumawo13 is offline   Reply With Quote
 

Tags
blu-ray, conversion, dvd, script, sixlineresizer


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 05:32.


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