Recorder Error: "filename.mp4 locked can't mux audio"

Hi,

I’m using Unity v.2022.3.1f1, and Recorder v.4.0.1 with the following settings:

The video quality is great! However, sometimes the audio doesn’t get recorded in the same output file as the video, and there is an error message:

“path_to_recording\filename.mp4 is locked can’t mux audio
UnityEngine.GUIUtility: ProcessEvent (int,intptr,bool&)”

Even with this error, the mp4 file gets created correctly but contains only video, no audio. An additional .mkv file is created, which contains the audio.

Of course, I can mix the two files. However, this happens quite randomly. Sometimes there’s only one mp4 output file that contains both video and audio, as expected, and sometimes two separate files are created.

Is there something that I can do to avoid such behavior?

Thanks in advance.

Hi pako,

I am trying to reproduce the issue to provide you with some pointers. In the meantime, would you mind creating a bug report for this? Since it happens kind of randomly, it will be helpful to get as much information as possible.

Thanks!

Hi rooose,

Thanks for your response.

I’ll do the bug report next week ASAP.

However, please note that the issue is 100% reproducible with 2 GameViews open.

Otherwise (with 1 GameView open), it seems related to how quickly I click on the Stop Recording button. e.g. I’m recording a fast-paced game, if I click on the Stop Recording button while the action is still playing it’s pretty likely that the issue will occur. However, if I let the action stop, enter a GUI screen and take some time, say 10 seconds, and then click on the Stop Recording button, it’s pretty likely that the issue will not occur. Nevertheless, even in the latter case, sometimes the problem always occurs. However, as I said above, with 2 GameViews open it happens 100% of the time.