0

How to re-size two layers with RVIO

overlayImage.tif has a different from imageSequence.0-100@@@@@.jpg resolution. Using a command below 

creates a quicktime movie with the first image over-imposed over the image sequence:

 

rvio_hw overlayImage.tif imageSequence.0-100@@@@@.jpg -view defaultStack -o movie.mov

 

Specifying "-outres" flag unfortunately doesn't re-size the layers individually but rather the output movie itself:

rvio_hw overlayImage.tif imageSequence.0-100@@@@@.jpg  -outres 720 405 -view defaultStack -o movie.mov

Question: Would it be possible to re-size both layers to the same 720 by 405 resolution before they are being overlay-ed (comped) on top of each other?

5 comments

  • 0
    Avatar
    Jon Morley

    Hi,

    Are you by chance trying to overlay a watermark on our jpg sequence? If so you can use the "-overlay bug <opacity> <width> <x_position> <y_position>".

    If not then I think you will want to uncrop the smaller source to match the size of the larger. Can you please tell me the two sources' dimensions?

    Thanks,
    Jon

     

  • 0
    Avatar
    Pasha

    The overlay image is the safe action/safe title area rectangle. It needs to be positioned on top of the "image sequence" precisely. The "-overlay bug" argument could probably work well if it would not try to re-position the overlay image off the center. No matter how much I've tried it seems "-overlay bug"  always tries to align the overlay image with one of the sides of the image sequence resulting to the off center shift. 

    The resolution of the overlay image is: 720 by 405.

    The resolution of the output quicktime is also 720 by 405 (which is achieved by using "-outres 720 405" argument).

    But the resolution of the "image sequence" layer is unknown. Since we never know what source it comes from: it could be a 3d rendering or a live action footage.

    The goal is to avoid of running an intermediate process of re-sizing of the "image sequence" layer to 720 by 405 so it could be later properly overlayed with the overlay image (since to get a correct final output both the overlay image and the "image sequence" layers have to have the same resolution).

    Please let me know if there is a way to sync both image layers to the same resolution using a single one-line command. Thanks in advance!

  • 0
    Avatar
    Jon Morley

    Hi,

    I see. Would it be possible to share your overlayImage.tif? Feel free to open a private ticket if that makes it easier. I am surprised that there isn't some relationship between the variable incoming source size and the output movie resolution that can be derived. If I could test with your overlay I might be able to find it. Please share with me the command lines you have tried with one set of source width, height pairs.

    Alternatively I think the way I would tackle this would be to construct a template stub session file that has a single source group.  In that source group I would set the necessary overlay point commands to construct a resolution agnostic "Legal" Safe area, and I would create a script that takes the session file, sets the source path, and passes it to RVIO for each source you need processed. If you want to pursue this option please let me know.

    Thanks,
    Jon

  • 0
    Avatar
    Pasha

    Thanks Jon! I've just opened a "Submit Request" entity with the sources images attached. The subject of the posted ticket is the same as the subject of this thread. Thanks in advance!

  • 0
    Avatar
    Jon Morley

    For posterity Pasha and I worked to find a solution as follows:

    Now I understand. Thank you for the extra samples and steps. I think I found a way to achieve this in one command:

    rvio_hw.exe [ overlay.tif -pa 0.75 ] background.jpg -resize 720 0 -view defaultStack -o qt.mov
    

    The trick here is to treat the overlay with a pixel aspect ratio that is the inverse of the of the relationship with the background's (and goal output's). In other words:

    overlayPA = 720 / 405 =~ 1.77777...
    targetPA = bgPA = 2048 / 1536 =~ 1.33333...
    
    correctionPA = bgPA / overlayPA =~ 1.33333... / 1.77777... = 0.75
    

    I hope that makes sense and helps you out. Please let me know what you think. After you are satisfied with the math I will update the forum post for posterity.

    Thanks,
    Jon

Please sign in to leave a comment.