Unable to hear audio in a mp4 file
Zavecen opened this issue · 2 comments
I created an mp4 file with audio but when I start recording I only hear about 1 millisecond of sound and then silence.
The video is still playing but no audio can be heard from that initial blip.
Thanks for raising the issue.
The only workaround I currenly know of is to split the audio from the video, and play it using a separate Audio track.
Cause of the issue:
Out of the box Unity's VideoPlayer is not compatible with Unity Recorder (the video plays at incorrect speeds). As a fix I made a modification to use VideoPlayer.SetForward
each frame rather than VideoPlayer.Play
here. While this fixes the video playback speed, it breaks the audio.
Ok, that sounds good. Does seem in keeping with Unity's struggles with Video playback. I'll keep with the workaround for now.