Digital Video Forums  

Go Back   Digital Video Forums > Video File Formats > MP4, MKV, MPEG-4 AVC (H.264)

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 15 Feb 2007, 11:51 PM   #1
Junior Member
Junior Member
 
Join Date: Feb 2007
Posts: 6
Default Calculate Video Size

I was wondering what the formula for calculating the framesize for a video could be.

Let's say I have a video that is 685x512 and I want the target width to be 640, how do I calculate the height?

And when I have calculated the new height, it's suppose to be dividable by 16, right? how do I then calculate for the border/cropping?
lazaruz is offline   Reply With Quote
Old 16 Feb 2007, 12:31 AM   #2
born to die
 
Join Date: Jan 2007
Posts: 5
Talking

calculate height keeping in view the same proportion..
e.g.
to convert from 640x480 to width 512 then u would calculate height by dividing it with the same proportion and that would result in 384

for proportion i mean: 640/480 results in 4/3 so divide 512 by 4/3 u will get 384.
Now for ur supposed width 685 (which is not divisible by 16) i am not sure what would u calculate but from my method its 478.346 ..well u can take height as 478 and do padding for 1-pixel row (if necessary)

regards
coldfire
__________________________________________________ _____________

GetOneByOne: Download MPEG4 AVC H.264 and Media Specific Books, Papers and more

Last edited by coldfire82; 23 Aug 2008 at 01:03 AM
coldfire82 is offline   Reply With Quote
Old 16 Feb 2007, 01:04 AM   #3
Junior Member
Junior Member
 
Join Date: Feb 2007
Posts: 6
Default

Thanks, I will try it out
lazaruz is offline   Reply With Quote
Old 16 Feb 2007, 09:27 AM   #4
Super Moderator
 
anonymez's Avatar
 
Join Date: Mar 2004
Posts: 5,529
Default

coldfire has it right, but round it up to 480.
__________________
"What were the things in Gremlins called?" - Karl Pilkington

anonymez is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate resolution lazaruz AVI, DivX/Xvid 6 9 Feb 2007 09:57 PM
How Can I Calculate The Dvd Bitrate Manualy ? meissa DVD Authoring and Editing 1 14 Aug 2004 02:09 AM
Bitrate Calculate.. too big ?! BlacKRaiN AVI, DivX/Xvid 22 29 May 2002 04:07 AM
Calculate file size with VBR Ultramaroon Conversion/Encoding 0 12 Mar 2002 07:02 AM



All times are GMT +10. The time now is 12:48 AM.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright © 1999 - 2018 Digital Digest

Visit DivXLand   Visit dvdloc8.com