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 13th April 2019, 20:07   #1  |  Link
Dreamject
Registered User
 
Join Date: Dec 2018
Posts: 140
How make automatical resize (downscaling) with avs?

I'm newbe, do not hit me)

I wanna make something like downscaling to, for example, 1366/768 display

So
1) Resizing should works only as downscaling
2) Target width/height should be devided to 2 without float (resizing limitation at least in SVP)

Ideally it should be like
TargetRes="1366,768"
But
TargetWidth=1366
TargetHeight=768
is okay too

I'm not familiar with avisynth, imho it should be like

WidthDen=width/TargetWidth
HeightDen=height/TargetHeight

WidthDen OR HeightDen > 1 eval("""
WidthDen > HeightDen eval("""
cropstring="BicubicResize(round(width/WidthDen),round(height/WidthDen),b=0,c=0.75)"
""") : eval ("""
cropstring="BicubicResize(round(width/HeightDen),round(height/HeightDen),b=0,c=0.75)"
""") : cropstring=""

But them also should be rounded to bigger number than must be devided to 2
Dreamject is offline   Reply With Quote
 


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 23:35.


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