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

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

Open aracid opened 3 years ago

aracid commented 3 years ago

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):

Thanks in advance Brian

AndrewRH commented 3 years ago

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,

Ste-RH commented 3 years ago

Anything to report @aracid ?

aracid commented 2 years ago

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

AndrewRH commented 2 years ago

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.

aracid commented 2 years ago

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