Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Render video file INSIDE BUILD at max speed?

Discussion in 'Virtual Production' started by alvinsoft, Dec 8, 2023.

  1. alvinsoft

    alvinsoft

    Joined:
    Jul 9, 2017
    Posts:
    50
    Good day people!
    I have been researching for a few hours now, but can't find a real solution.
    My goal is simple. Have a scene setup however and when I press a button in the build, render everything that is to come for, say 10min, and output it to a video file. Crucial would be to use the full potential of the computer.
    Just like in a video editor, you edit the video, no matter how, and when you press render, it doesn't render the video in 'real time', but renders it as fast as possible as to not waste time. If it's just some text, a 10 min video would take maybe 3 min.
    How can I achieve this same behaviour in Unity? There's got to be some way without me needing to write a library or something using ffmpeg.
    Thanks a lot in advance!!!
    Alvin
     
  2. marief_unity

    marief_unity

    Unity Technologies

    Joined:
    Oct 9, 2018
    Posts:
    143
  3. alvinsoft

    alvinsoft

    Joined:
    Jul 9, 2017
    Posts:
    50
    Yes! Thanks a lot for your reply. This is already great, but it uses AVFoundation, so it only runs on Apple devices.
    Though is there something like this that can also record at maybe 4 times the speed and not affect the audio when slowed down to default speed?
     
  4. marief_unity

    marief_unity

    Unity Technologies

    Joined:
    Oct 9, 2018
    Posts:
    143
    Hi @TheMatrixAgent22 !

    Recorder is not intended to work in a build, as it depends on some Editor only APIs that are Editor specific.
    But I know some people were able to strip down Recorder's code of all these APIs and from there record in Runtime.
    So that could be a way to go for you.

    Another inspiration for you could also be Forma Render.