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
- [Android] Texture Compression default texture format is set to PVRTC when building via script BuildPipeline.BuildPlayer
- [Android][GameActivity] APK built with Development Build enabled gets flagged as having Malware
- Default name of manually created Global Light 2D GameObject differs from the one included in the initial project Scene
- Option for "Acceleration Structure Build Flags" cannot be toggled when Lightmaps have been Generated for a Mesh Renderer
- Lights in Batch keep resetting to 0 in the Light Batching Debugger when a new GameObject is created and the mouse cursor is hovered over the Inspector window
This is a duplicate of issue #899620