UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

No sound when Unity output is selected

Open pilat-bartosz opened this issue 3 years ago • 3 comments

Problem description:

Everything works fine as long as the output is set to "System Direct", but when "Unity" is selected, audio does not work.

I'm using the AudioOutput component with "multiple channels - everything" selected.

Device (which devices are you having the issue with - model, OS version number):

PC - win10; android - Quest2

Media (tell us about your videos - number of videos, resolution, codec, frame-rate, example URLs):

I want 1 video only but tested on multiple similar ones: 1080p, .mp4, h264 and h265. Your BigBuckBunny sample video also doesn't work.

System Information:

AVPro Video: v2.6.2 (plugin v2.6.0f1-core) Target Platform: Standalone Unity: v2020.3.20f1 WindowsEditor OS: Desktop - MS-7984 (MSI) - Windows 10 (10.0.19044) 64bit - English CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz - 8 threads - 65495KB GPU: NVIDIA GeForce GTX 1080 Ti - NVIDIA - Direct3D 11.0 [level 11.1] - 11128KB - 16384

pilat-bartosz avatar Sep 19 '22 11:09 pilat-bartosz

The Demo_MediaPlayer scene is set-up to output to Unity by default. Do you get the issue using that scene without changes?

Are you seeing this issue on Android? Windows (editor)? Windows (standalone)? A combination of those?

Ste-RH avatar Sep 20 '22 10:09 Ste-RH

In the meantime, I backtracked and reimport the whole package (before it was updated from I think 2.4). The test scene is indeed working as intended. And based on this I was able to make my own working setup. So probably this was the issue.

The only minor issue I found was the multi-editing of the AudioOutput component - it resets channels to the same value.

pilat-bartosz avatar Sep 20 '22 11:09 pilat-bartosz

So you reimported AVPro Video v2.6.2, jiggled some bits in your scene/project, and all is good now?

Ste-RH avatar Sep 20 '22 14:09 Ste-RH

Closing due to lack of response (and think the issue is addressed).

Ste-RH avatar Sep 27 '22 09:09 Ste-RH

I'm sorry for the lack of response. I was testing it more on other devices and forgot.

It seems everything is working fine now.

pilat-bartosz avatar Sep 27 '22 10:09 pilat-bartosz