Search Unity

Video Unity Recorder - Custom bitrate?

Discussion in 'Audio & Video' started by Raul_MadGoat, Apr 21, 2019.

  1. Raul_MadGoat

    Raul_MadGoat

    Joined:
    Jan 10, 2015
    Posts:
    156
    Hello, we are currently using the Recorder package with the Timeline to create a cinematic from our game, and we render the timeline to mp4.

    I've noticed the only setting related to encoding is the quality, which is just 3 options, Low, Medium, High. Is there any way to set up a custom bitrate for the recorder?

    Even on "High" quality setting we find the output videos to be not usable for anything else than just previewing. (not sure if this is a bug or the bitrate on High is not that "High" :D ) There is a lot of motion in the cinematic, higher bitrate is needed for us, otherwise parts of it are a compressed mess.

    Thanks
    Raul @ MadGoat
     
  2. marief_unity

    marief_unity

    Unity Technologies

    Joined:
    Oct 9, 2018
    Posts:
    81
    Hey @MadGoat and @zombieguy,

    This is a known problem.

    See more information here: https://forum.unity.com/threads/unity-recorder-update.509458/page-6#post-3866131

    That said, in the meantime, here are some workarounds you could try :
    - Use Legacy MP4 Recorder that allows you to set the bitrate (you need to check the "Show Legacy Recorder" in the Window > General > Recorder menu)
    - Export an image sequence and then use a third party to encode into a movie

    Thanks you so much for your patience, improving this is in the roadmap but we had/have to work first on core features / fixes !
     
  3. Raul_MadGoat

    Raul_MadGoat

    Joined:
    Jan 10, 2015
    Posts:
    156
    Thank you for the detailed answer!

    Will definitely check out the legacy recorder then!

    On a side note, we used the image sequencer render before, but we decided to switch to mp4 due to the fact that for us it's easier to handle audio directly in unity (with animation events and Timeline) rather than having to import and sync all our audio tracks in Premiere, for example. My guess would be that rendering once as image sequence for the video part and once as mp4 for the whole audio track then only take the audio from the mp4 would also work.

    And no worries. We get that the package is still just a preview, and we are looking forward to see improvements! It really is a must have for any cinematic project :)
     
  4. marief_unity

    marief_unity

    Unity Technologies

    Joined:
    Oct 9, 2018
    Posts:
    81
    Hey @MadGoat !

    You could give a try to AudioRecorder.
    The only issue is that for now it is not integrated to plain Recorder (on the TODO list).

    So to work with Packages Recorder it requires some package tricks.
    Here's a step by step :
    - copy recorder package folder (com.unity.recorder@2.0.0-preview.6) from package cache (/path/to/project/
    projectName/Library/PackageCache/) and paste it where you see fit
    - Download the three AudioRecorder files here : https://github.com/Unity-Technologi...AudioRecorder/Sources/Recorders/AudioRecorder
    - In your package copy, create AudioRecorder folder in /path/to/copy/com.unity.recorder@2.0.0-preview.6/
    Editor/Sources/Recorders/ and move the 3 scripts here
    - Update your package manifest to use the package copy :
    - open /path/to/project/projectName/Packages/manifest.json
    - change recorder line to : "com.unity.recorder": "file:/path/to/copy/com.unity.recorder@2.0.0-preview.6",​

    Anyways, thanks for your feedbacks :)
     
    Raul_MadGoat likes this.
  5. Raul_MadGoat

    Raul_MadGoat

    Joined:
    Jan 10, 2015
    Posts:
    156
    Thanks :) Will check out!