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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
This is a duplicate of issue #899620