Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    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 ...
     
unityunity