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

problems when using timeline with recorder

Discussion in 'Timeline' started by robertoranon, Jul 16, 2019.

  1. robertoranon

    robertoranon

    Joined:
    Feb 21, 2018
    Posts:
    16
    Hi,

    I am using Unity 2019.1.9f1 with timeline and recorder on mac os, and I have a few problems.

    I am producing a video at 25fps that I record from the editor. I set the timeline to 25fps, and I have added a recorder track to record the individual frames (as jpeg images) of the video. Then, I hit play to record the video. Also, I am using a script to force rendering at 25fps, using

    Code (CSharp):
    1. QualitySettings.vSyncCount = 0;
    2. Application.targetFrameRate = 25;
    I have two problems:

    - the second frame of the video is always flipped vertically
    - sometimes, the fps I set is not respected, and as a result the video has less frames than expected: this happens randomly, but quite often.

    Any help is much appreciated. Thanks!
     
  2. robertoranon

    robertoranon

    Joined:
    Feb 21, 2018
    Posts:
    16
    Edit: seems solved by switching the recorder track from "capture game view" to "targeted camera" which is then set to mainCamera ...