Calculate Video Size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lazaruz
    Junior Member
    Junior Member
    • Feb 2007
    • 6

    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?
  • coldfire82
    born to die
    • Jan 2007
    • 5

    #2
    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, 12:03 AM.

    Comment

    • lazaruz
      Junior Member
      Junior Member
      • Feb 2007
      • 6

      #3
      Thanks, I will try it out

      Comment

      • anonymez
        Super Moderator
        • Mar 2004
        • 5525

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

        Comment

        Working...