Search Issue Tracker

Fixed

Fixed in 4.0.1, 5.0.0-pre.1

Votes

0

Found in [Package]

3.0.3

Issue ID

REC-1012

Regression

No

Refuse recordings with audio if project audio has more than 2 channels

Package: Recorder

-

*Reproduction Steps:*
# Set the project audio settings to 5.1 (Project Settings > Audio > Default Speaker Mode > Surround 5.1)
# Create dummy Timeline in a scene and add an Audio Track in it
# In the Recorder window, create a new Movie recorder.
# Ensure Capture > Include Audio is ticked
# Ensure you have H.264 MP4 selected in Format > Media File Format
# Start a normal manual recording (Recording Mode : Manual)

*Observed:* The recorder stop with 3 errors in the console (see below)

*Expected:* No error in the console or prevent user to record with settings that are not compatible

*Reproduced on:*
* Recorder {{3.0.3}}
* Unity {{2021.2.1f1}} (I don't want to install {{{}2019.x{}}})
* Windows

*Console errors:*
{noformat}
WindowsVideoMedia error 0xc00d36b4 while reading C:\Sandbox\Unity Projects\local_21.3\Recordings\movie_002.mp4Context: IMFSinkWriter::SetInputMediaType (audio, some AAC parameters may be unsupported)
Error details: The data specified for the media type is invalid, inconsistent, or not supported by this object.
Track types:
   Audio Track, type: AAC{noformat}
{noformat}
Error in VideoMediaEncoder::Create create and setting attributes in C:\Sandbox\Unity Projects\local_21.3\Recordings\movie_002.mp4.
{noformat}
{noformat}
[MovieRecorder: Movie] Recording failed. Unable to create encoder: 'MediaEncoder: Output file creation failed for C:\Sandbox\Unity Projects\local_21.3\Recordings\movie_002.mp4'
UnityEditor.EditorApplication:Internal_CallUpdateFunctions (){noformat}
*Suggestions for a solution:*
* Add a warning
* Force a max of 2 channels
* (implement) multi channel audio ?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.