Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to hear audio in a mp4 file #1

Open
Zavecen opened this issue Jun 28, 2020 · 2 comments
Open

Unable to hear audio in a mp4 file #1

Zavecen opened this issue Jun 28, 2020 · 2 comments

Comments

@Zavecen
Copy link

Zavecen commented Jun 28, 2020

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.

@James231
Copy link
Owner

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.

@Zavecen
Copy link
Author

Zavecen commented Jun 28, 2020

Ok, that sounds good. Does seem in keeping with Unity's struggles with Video playback. I'll keep with the workaround for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants