- Home /
VideoPlayer decoder with multiple channels audio
Hello, I have an idea about surround sound and want to implement by VideoPlayer with Unity 2019.4.
I downloaded a video file here which includes a video track and 5.1 channel audio data encoded by HE-AAC in single audio track.
The VideoPlaer could play this file successfully and show the audio track is 6 channels.
Then I set the AudioOutputMode to AudioSource that redirects the audio buffer to another AudioSource with custom AudioMixer.
I wish the native audio plugin could recive 6 channels audio buffer when ProcessCallback has be invoked but it says there is only 2 channels.
It seems the VideoPlayer has already mixed 6 channels to 2 channels somewhere before transfer it to native.
I know the AudioOutputMode has a APIOnly mode.
It looks like user could interrupt the audio decoding process but it’s too complex for me and the mode is marked as experiment.
So I don’t want to use this mode to do my work.
Could VideoPlayer decode the audio track without mixing to stereo before transfer to native audio plugin?
Is there a trick to approach it?
Your answer
Follow this Question
Related Questions
Animated GIF and Audio Instead of Video? 3 Answers
Screenshot Movie with Audio Capture 1 Answer
How to add audio to a video file within Unity,How can I add audio to a video from within Unity 0 Answers
video-audio not playing in build (i tried webgl and android) 0 Answers
Why video does't have sound on runtime? 2 Answers