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.
-
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
- Asset Database warning is being logged continuously when creating a script in an embedded package
- Build process only shows Initializing when building for Android
- TileMap Palette preview flickers when scaled
- Shader Graph Blackboard "plus" sign is not centered within the button
- [URP] When Rendering Layers are enabled, the DepthNormalPrepass is enabled even if not used
This is a duplicate of issue #899620