RenderHeads / UnityPlugin-AVProVideo

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

[Windows] Streaming Video on Windows - Media Foundation/WinRT - Results vary #2064

Closed aracid closed 2 weeks ago

aracid commented 2 weeks ago

Unity version

2022.3.20f1

Unity editor platform

Windows

AVPro Video edition

Ultra

AVPro Video version

3.1.2

Device hardware

AVPro Video v3.1.2 (native plugin v3.1.0f1-ultra) on NVIDIA GeForce RTX 3090/Direct3D 11.0 [level 11.1] (MT True) on WindowsEditor

i7/96Gig of ram.

Which Windows version are you using?

10

Graphics API

D3D 11

Video API

Media Foundation

Audio output

Facebook 360

Any other Media Player component configuration required to reproduce the issue.

RT and Media Foundation - just test it from the Demp_360Stereo Scene

Which output component(s) are you using?

No response

Any other component configuration required to reproduce the issue.

No response

The issue

I have these two scenarios

Departing from the Demo_360Stereo Scene packaged with the app

When streaming this video from AWS

https://d1rse8fdifyhlf.cloudfront.net/experiences/d2AemwxbB0XulkGCRHUA_fQuLsNen8xnpcoJ3kZIA_GXwlg2KANpO1GEQDrJV3bd391731bc0d857216d0e3efa52c7bfa.mp4

H264 - 4K

Media Foundation - Video Plays Win RT - Video Fails

Then when using the same video but copied locally and using Streaming Assets Folder Media Foundation - Video Plays Win RT - Video Plays

When streaming this video

https://d1rse8fdifyhlf.cloudfront.net/experiences/d2AemwxbB0XulkGCRHUA_9NJxxPW3khP9wXL9bqin_szF8F3dQGAEJJeEBo9Ehfe1057579b4d5ef63ae3163ffd6ecb25.mp4

H265 - 4K

Media Foundation - Video Fails - [AVProVideo] Error: Loading failed. File not found, codec not supported, video resolution too high or insufficient system resources. Win RT - Video Fails - To Error in log, just failes to play

Then when using the same video but copied locally

When copied into the Streaming Assets folder Media Foundation - Video Fails Win RT - Video Fails but the audio plays

Thanks in advance

Media information

https://d1rse8fdifyhlf.cloudfront.net/experiences/d2AemwxbB0XulkGCRHUA_fQuLsNen8xnpcoJ3kZIA_GXwlg2KANpO1GEQDrJV3bd391731bc0d857216d0e3efa52c7bfa.mp4 https://d1rse8fdifyhlf.cloudfront.net/experiences/d2AemwxbB0XulkGCRHUA_9NJxxPW3khP9wXL9bqin_szF8F3dQGAEJJeEBo9Ehfe1057579b4d5ef63ae3163ffd6ecb25.mp4

Log output

No response

Chris-RH commented 2 weeks ago
  1. Streaming and local playback works for both videos using DirectShow
  2. With regards to the HEVC video. The issue is that Windows no longer comes with the H265 codec. We have no idea why they stopped doing so. Users can install it from the Windows Store, you just need to search for HEVC extension. Then it will play fine both streaming and locally.