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

Streaming high bitrate MP4 sometimes stalls and doesn't resume using Media Foundation - Same as #394(Which is stale)

Open aracid opened this issue 4 years ago • 5 comments

Hi there

Ticket - https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/394

When running either through editor or Windows I can frequently notice oddities when trying to load a stream. Playback will begin but then get stuck at a certain point. At that point, buffering will occur but seems to keep looping as if stuck between which stream to display.

Has this issue been resolved because I'm seeing similar results. Media starts fine and then shortly the media stalls once it reaches the end of the buffer. This occurs in the demo scene, just swapping out the media for the MP4 listed below.

image

Your Setup (please complete the following information):

  • Unity version: 2020.1.8f1
  • AVPro Video version: AVPro Video v2.0.11
  • Operating system version: Windows 10
  • Device model: Oculus Quest / NVIDIA TITAN X
  • Video specs (resolution, frame-rate, codec, file size): 4k 10Mbps

Thanks in advance Brian

aracid avatar Apr 19 '21 02:04 aracid

Hmm that sounds strange...

Could you try switching to the WinRT API - does that solve it? I just want to see if it's specific to the Media Foundation API

Thanks,

AndrewRH avatar May 04 '21 11:05 AndrewRH

Anything to report @aracid ?

Ste-RH avatar May 26 '21 10:05 Ste-RH

Hey there

sadly this didn't seem to do much and the video's stalls quiet frequently and stops buffering.

Unfortunately I don't know if this is due to the plugin or app.

I'm still investigating this tho. Cheers

aracid avatar Jul 12 '21 04:07 aracid

This seems to be the behaviour of Media Foundation API... Unfortunately it's logic for downloading and playing very high bitrate files seems to be broken. This is a good example of it. It doesn't happen all of the time though. We don't have a solution for this yet but in general for streaming large files we recommend using HLS instead of MP4 files, and MP4 files for local playback.

AndrewRH avatar Apr 19 '22 15:04 AndrewRH

Thanks for this, Ill give it a try. Kind regards

aracid avatar Apr 19 '22 19:04 aracid