Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Finding equivalent x,y position values in HD video

  • 13-06-2012 3:26pm
    #1
    Registered Users, Registered Users 2 Posts: 5,182 ✭✭✭


    Hi, I have a video that I changed from 720x540 to 1920x1080. I want the animation of the energy beams in this video to have the same positions as they move across the screen relative to the 720x540 version. For each animation of the beams I have two position key frames. I need to work out what the values for these key frames are for the 1920x1080 version but don't have the maths skills to find them. Here are the values for the topmost beam in 720x540.

    start position

    x: 1241.8 y: 278

    end position

    x: 400.1 y: 195

    Is there a way to translate these values to their relative equivalents in HD?


Comments

  • Registered Users, Registered Users 2 Posts: 5,141 ✭✭✭Yakuza


    I might be missing something, but how can something that is in a 720 * 580 screen size have an x co-ordinate of 1241.8?.

    In general terms, if you've upscaled 720 * 540 to 1920 * 1080, then all you need to do is multiply your x (width) coordinate by 8/3 (1920/720, reduced to its lowest terms) and double your y (height) co-ordinate by 2 (1080 / 540, reduced to its lowest terms).

    So, for example a pixel at position 360, 270 (the middle of the screen) on a 720 * 540 screen would be at 960 (360 * 8/3), 540 (270*2) on a 1920 * 1080 screen.

    I hope that helps.


  • Registered Users, Registered Users 2 Posts: 5,182 ✭✭✭nyarlothothep


    Yes, this seems to be working. I forgot to mention that the energy beams start and end outside the frame as they travel into and out of view.


  • Registered Users, Registered Users 2 Posts: 642 ✭✭✭red_fox


    I assume that the change in aspect ratio is intended? Also, that the video is streched to fill the higher resolution rather than scaled to be a best fit? (which would be 1440x1080 and have black borders 240 wide on either side)


  • Registered Users, Registered Users 2 Posts: 5,182 ✭✭✭nyarlothothep


    It's being generated inside AE and the background image was originally in HD so I don't think there will be any problems with pixellation.


  • Registered Users, Registered Users 2 Posts: 642 ✭✭✭red_fox


    I wasn't thinking of pixellation, just that if it presevered the aspect ratio then Yakuza's method won't quite work, however if the image is streched (linearly) then it will work.


  • Advertisement
Advertisement