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. |
28th February 2013, 21:32 | #1 | Link |
Learning Avisynth user
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)} 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. |
16th March 2013, 06:17 | #2 | Link |
Warm and fuzzy
Join Date: Apr 2010
Location: Moscow, Russia
Posts: 201
|
There is no good way to add borders to video.
There is no good way to use any resizers, if upscaling video to 2 or more times, instead of NNEDI, NNEDI2, NNEDI3. . Maybe you will use function Panorama(...) instead of AddBorders(...) function, when converting 4:3 -> 16:9 or 16:9 -> 4:3, see web link. http://forum.doom9.org/showthread.php?t=165911 . . http://forum.ixbt.com/topic.cgi?id=29:33007-9 . This is a very good description of DAR, PAR, SAR with examples and pictures, see web link upper, but in Russian. .
__________________
Warm and fuzzy (white and fluffy) Last edited by Jenyok; 16th March 2013 at 11:45. |
16th March 2013, 15:53 | #4 | Link | |
Useless idea generator
Join Date: Apr 2004
Location: Europe, Czech Republic, Brno
Posts: 332
|
Quote:
__________________
Vista64 Premium SP2 / C2D E4700 2.6GHz/ 6GB RAM/ Intel GMA 3100 / DTV Leadtek DONGLE GOLD USB2 / focused to DVB-T MPEG2 PS capture -> ProjectX -> M2V/MP2 -> MeGUI/AVS -> MP4[AVC/AAC] |
|
Tags |
blu-ray, conversion, dvd, script, sixlineresizer |
|
|