RenderHeads / UnityPlugin-AVProVideo

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

UWP takes a long time to start a live stream due to old plugin version #519

Closed n-yositaka closed 3 years ago

n-yositaka commented 3 years ago

Describe the bug: It takes a very long time to play the live stream.

Your Setup (please complete the following information): Unity version: 2017.4.27f1 AVPro Video version: Latest Operating system version: Windows 10 Video specs (resolution, frame-rate, codec, file size): 3840×2160, 30fps, H.264, CMAF Live Streaming

To Reproduce: It's not a problem in the Unity Editor, but it happens in the UWP master build. It wasn't a problem until now.

Logs:

[16:55:29][Log][AVProVideo] Initialising AVPro Video (script v1.11.5 plugin v1.9.17) on NVIDIA GeForce GTX 1080/Direct3D 11.0 [level 11.1] (MT True) on MetroPlayerX64 Windows 10 (10.0.18362) 64bit
[16:55:29][Log][AVProVideo] Opening https://xxxxxxxxxxxxx.cloudfront.net/out/v1/5660fb93daa942d8a9f64f83cea0f217/CMAF/index.m3u8?aws.manifestfilter=video_codec:h264;video_height:1441-2160 (offset 0) with API 
[16:55:29][Log]Display is Opaque
[16:55:29]AVProEvent:StartedBuffering
[16:55:30][Log][AVProVideo] Using playback path: MF-MediaEngine-Hardware (1920x1080@30.00)
[16:55:30]AVProEvent:MetaDataReady
[16:55:30]AVProEvent:ResolutionChanged
[16:55:31]AVProEvent:Stalled
[16:55:46]AVProEvent:StartedBuffering
AndrewRH commented 3 years ago

UWP...interesting. Which device? How long is very long?

Also - could you try upgrading your plugin again - it looks like the plugin file is stuck on 1.9.17 which indicates that the plugin file didn't upgrade - you should close Unity and open it again and then immediately try to upgrade to that the DLL files dont' become locked by Unity.

Also we have upcoming AVPro Video 2.0 which has better UWP support, perhaps you could try it to see if it improves the situation: https://github.com/RenderHeads/UnityPlugin-AVProVideo/releases/tag/2.0.0beta5

Thanks,

n-yositaka commented 3 years ago

Thanks for the confirmation.

The device is a Windows MixedReality HMD. Loading took about 3 minutes.

I deleted the Unity plugin folder and reinserted AVPro Video unitypakage. The plugin version has been updated in the Unity Editor, but the apk I built for Windows MixedReality did not update the plugin.

[14:30:19][Log][AVProVideo] Initialising AVPro Video (script v1.11.6 plugin v1.9.17) on NVIDIA GeForce GTX 1080/Direct3D 11.0 [level 11.1] (MT True) on MetroPlayerX64 Windows 10 (10.0.19041) 64bit

Thanks.

n-yositaka commented 3 years ago

In the apk that selected x86_64 as the target to select when building in Visual Studio, the plugin was displayed as v1.9.17, but in the apk with the target set to x86, the plugin was displayed as v1.11.6 and the problem was resolved. Can you please confirm that the x86_64 plugin does not seem to be updated?

AndrewRH commented 3 years ago

Hi @n-yositaka

You are correct - there was a problem with our build system and UWP10 64-bit wasn't being rebuilt!

We will release 1.11.7 today with that fix.

Thanks for reporting this, let me know if it the correct plugin version appears after upgrading and whether it fixes the long delay issue.

Thanks,

n-yositaka commented 3 years ago

Thank you for your quick response. I will verify the results with my team on Monday and report back to you.

Thanks.

n-yositaka commented 3 years ago

Hi Andrew,

Using 1.11.7 has solved the problem.

Thanks.

AndrewRH commented 3 years ago

Thanks, I'm glad to hear that. I'll close this issue now.