Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Recorder: record in multiple video aspects simultaneously

Discussion in 'Audio & Video' started by Bromm, Jul 25, 2021.

  1. Bromm

    Bromm

    Joined:
    Nov 18, 2014
    Posts:
    18
    Hi.

    I'm trying to record videos in 3x4 and 1x2 aspects in one go.

    Screenshot_6.png

    3x4 is fine but 1x2 is uncentered (like 3x4 was cropped on the right)

    Screenshot_5.png

    Is this intended and can it be bypassed somehow?

    Thanks.
     
  2. ivoras

    ivoras

    Joined:
    May 21, 2020
    Posts:
    66
    What is the component or package in question?
     
  3. Bromm

    Bromm

    Joined:
    Nov 18, 2014
    Posts:
    18
  4. unitybru

    unitybru

    Unity Technologies

    Joined:
    Jan 28, 2020
    Posts:
    225
    Hi,

    This is a bug, thank you for reporting it.
    It seems that the Recorder changes the aspect ratio for the camera, but in this case there is a conflict because of two requested aspect ratios. We'll see if this can be fixed or if we prevent it from happening with warnings/errors.

    I see 2 options to work around this until it gets fixed:
    * copy your camera so you have two different cameras, one for each aspect ratio
    * make your camera output to a render texture and use shaders to perform cropping with a MonoBehaviour to get your 2 aspect ratios
     
  5. Bromm

    Bromm

    Joined:
    Nov 18, 2014
    Posts:
    18
    Thanks!

    * Different cameras didn't help.
    * Texture cropping will try this week.

    Btw this also happens when game view is selected as a source.
     
  6. jbergs

    jbergs

    Joined:
    Feb 13, 2014
    Posts:
    26
    This is still happening in 2022.2.5f1. Would like to record several aspect ratios at once, but it seems to pick one and make all the timeline Recorders have the same aspect ratio.