View Full Version : math\aspect ratio quest, sorta
yair
1st April 2010, 19:37
hi all,
i have a video sized 2944x1200
i want to downsize it so the width will be around 1800 and the height will keep the ratio AND will be dividable by 16
whats a good method to find it?
willing to crop, realy would like to get the formula so i don't ask this again anytime soon...
Guest
1st April 2010, 19:55
Simple arithmetic:
1766 x 720
smok3
1st April 2010, 20:25
http://smok3.bplaced.net/resize/?ssmw=2944&sar=1&sar2=&ssmh=1200&CT=2&CL=&CR=&CB=4&mplayCrop=&trw=1776&dar=1&dar2=&modw=&modh=&padw=&padh=&css=&doit=true
# resizeCalc Avisynth
# pixels = 1278720, DAR error = 0.041
# Crop(Left, top, -right, -Bottom)
Crop(0,2,-0,-4) # 2944x1194(-6px)
LanczosResize(1776,720) # (modw16,modh16)
yair
1st April 2010, 20:41
thanks for the math, and the link!
i know the avisynth community will deliver
SeeMoreDigital
1st April 2010, 21:27
2944 divided by 1200 = 2.45333
Personally, I'd recommend you adopt the high-def frame size width of 1920 pixels...
Meaning, 1920 pixels divided by 2.45333 = 782.608 pixels high.
The nearest mod-16 value to 782 pixels is 784 pixels.
So the finished frame size (resolution) would be 1920 x 784 pixels.
yair
2nd April 2010, 00:12
i want it a less then that as i dont play it full screen and i like to have space on the sides.
a bit about the footage-
its a screen capture of my dual screen pc setup.
a 1920x1280 and a smaller 17" running at 1024x768.
i currently use a demo of a timesnapper (http://www.timesnapper.com/) - it also saves statistics of usage linked to activity timeline
timesnapper screencaptures to jpg every 3 seconds
from there it passes to avisynth
CoronaSequence("D:\timeSnapper\2010-03-14\*.jpg",textmode=1,size=28,y=1145)
#2944x1200 http://smok3.bplaced.net/resize/index.php
Crop(0,2,-0,-4) # 2944x1194(-6px)
LanczosResize(1808,736) # (modw16,modh16)
ConvertToYV12()
my usual setup is virtualVCR (http://virtualvcr.sourceforge.net/) using VH Screen Capture Driver (http://www.splitmedialabs.com/vh-video-sdk/vh-screen-capture) into the MSU screen codec (http://compression.ru/video/ls-codec/screen_capture_codec_en.html).
i am currently in between encoders,
looking for one that accepts avisynth
(handbrake doesn't, staxrip doent play nice, super! is a messy beast).
i usually go with avs2avi but am looking into FFmpeg, any tips there would be great.
i
Blue_MiSfit
6th April 2010, 01:27
Read my signature ;)
Seriously though, x264 will probably be your best bet. What are you trying to target with your encode?
~MiSfit
yair
6th April 2010, 08:50
im trying to keeping small fonts readable, conserve space and not mess the colors.
as im willing to do the video conversion non-real-time, cpu usage is less important.
but would like the format to be easily editable in sony vegas.
for now i use the msu codec
avs2avi.exe %IN% %OUT% -c MSUD
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.