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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
This is a duplicate of issue #899620