RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
232 stars 28 forks source link

FantasyStereoFB360.mkv and HansVoice_FB360_H264_Opus.mkv not playing #1372

Closed RuudvanReenen closed 1 year ago

RuudvanReenen commented 1 year ago

Describe the issue Trying to play FantasyStereoFB360.mkv and HansVoice_FB360_H264_Opus.mkv results in: [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources.

Your Setup (please complete the following information):

To Reproduce

  1. Create a new project, open the AVProVideo Demo_360Stereo scene
  2. Copy the FantasyStereoFB360.mkv or HansVoice_FB360_H264_Opus to the StreamingAssets folder and create a MediaReference for it
  3. Assign the MediaReference to the MediaPlayer, set Windows Audio Output to Facebook Audio 360, Channel Mode to TBE_8_2 and click Load
  4. Same error occurs when trying to play these files in Windows and Android builds.

Logs [AVProVideo] Initialising AVPro Video v2.6.5 (native plugin v2.6.3f1-ultra) on Emulated GPU running OpenGL ES 3.0/OpenGL ES 3.0 [emulated] (MT True) on WindowsEditor [AVProVideo] Opening D:/Dev/Unity Projects/Test-AVPro-01/Assets/StreamingAssets\AVProVideoSamples/FantasyStereoFB360.mkv (offset 0) with API MediaFoundation [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources.

Chris-RH commented 1 year ago

Hi @RuudvanReenen,

Try DirectShow or WinRT Video API for Windows

RuudvanReenen commented 1 year ago

Thanks! DirectShow and WinRT play the file indeed, but there's no audio. Windows Audio Output is set to Facebook Audio 360 and Channel Mode is set to TBE_8_2.

In the Media Info in the MediaPlayer inspector, it only shows 1 Video track, no audio track(s). When testing with the BugBuck720p30 file, it correctly shows an audio track.

I'm using these files to try to get ambisonic sounds to work.

Chris-RH commented 1 year ago

It should certainly work in Windows 10. We don't recommend testing using any emulators.

Starting with Windows Editor: I've tried DX11 and DX12 and they both work. Can you update to the latest version of AVPro Video. Can you check that you have the HEVC codec installed in Windows? Can you test starting a new Unity project with just AVPro Video installed and using the Demo360 scene and the above videos (and no other assets)? The only thing that you should have to do is set audio to FB 360 and set it up in the audio section https://www.renderheads.com/content/docs/AVProVideo/articles/feature-360audio.html

RuudvanReenen commented 1 year ago

Fixed by removing a leftover Audio360.dll in the Assets\Plugins\x64 from an earlier version of AVPro Video and then reimporting the latest version of AVPro Video.