Search Issue Tracker
Duplicate
Votes
4
Found in
2017.1.0a5
Issue ID
895458
Regression
No
AudioSource attached to VideoPlayer produces choppy sound when playing certain mp4 files with VideoPlayer created from script
To reproduce:
1.Download and open attached project.
2.Open "scene1" Scene.
3.Select "Plane" object.
4.Add "Games for Windows" video to Average Color From Texture(script) component's "Video To Play" slot.
5.Play the scene and notice choppy sound in the video.
Expected result: Sound is played smoothly without any audio artifacts.
Actual result: Sound is played with choppy sound in the background.
Reproduced with: 5.6.0f1, 2017.1.0a2, 2017.1.0a5.
Notes: This happens only with certain videos. There are 4 mp4 files in the project. With "toystory" mp4 file choppy sound does not appear. However, with "Games For Windows" and with "3 Ninjas Kick Back (USA)" mp4 file background sound is present. Also, If VideoPlayer and AudioSource Components are added to object manually audio artifacts are heard much less than when instantiating them from script.
Comments (2)
-
Arvin6
Jun 28, 2017 09:04
Please vote up on #899620 since voting is disabled on this.
-
xelu3banh
May 30, 2017 07:53
Maybe the video's framerate isn't equal the Unity's framerate. So, I've fixed with this:
Application.targetFrameRate = (int)GetComponent<UnityEngine.Video.VideoPlayer>().frameRate;
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
This is a duplicate of issue #899620