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

[Windows] Unity AVPro Media Player freezes randomly after playing RTMP stream for a couple of frames #1602

Closed maddalihanumateja closed 1 year ago

maddalihanumateja commented 1 year ago

The issue I'm having intermittent failures playing a 4K 360-video RTMP stream on a spherical mesh with the DirectShow API and LAVFilters, as suggested in the documentation. On some tries, the stream opens and plays a few frames before freezing. This seems to happen often enough that I'm having to close and reopen the corresponding Mediaplayer or even delete and reinitialize the Mediaplayer's parent gameobject multiple times manually to get the stream to play without freezing. I dont see any errors or warning from AVPro on the Unity console either. Is this a known issue? Could someone help me diagnose and fix this?

My Setup:

To Reproduce I don't have a comparable public stream to share for this.

Logs No errors or warnings on the console. Just the following

[AVProVideo] Initialising AVPro Video v2.8.1 (native plugin v2.8.0f1-ultra) on NVIDIA RTX A6000/Direct3D 11.0 [level 11.1] (MT True) on WindowsEditor
UnityEngine.Debug:Log (object)
RenderHeads.Media.AVProVideo.Helper:LogInfo (string,UnityEngine.Object) (at Assets/AVProVideo/Runtime/Scripts/Internal/Helper.cs:183)
RenderHeads.Media.AVProVideo.MediaPlayer:Initialise () (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:438)
RenderHeads.Media.AVProVideo.MediaPlayer:Start () (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:458)

[AVProVideo] Opening rtmp://{ipaddress of camera}/live/live (offset 0) with API DirectShow
UnityEngine.Debug:Log (object,UnityEngine.Object)
RenderHeads.Media.AVProVideo.Helper:LogInfo (string,UnityEngine.Object) (at Assets/AVProVideo/Runtime/Scripts/Internal/Helper.cs:187)
RenderHeads.Media.AVProVideo.MediaPlayer:InternalOpenMedia () (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:577)
RenderHeads.Media.AVProVideo.MediaPlayer:OpenMedia (bool) (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:509)
RenderHeads.Media.AVProVideo.MediaPlayer:Start () (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:463)

[AVProVideo] Using playback path: DirectShow (3840x2160@29.97)
UnityEngine.Debug:Log (object)
RenderHeads.Media.AVProVideo.Helper:LogInfo (string,UnityEngine.Object) (at Assets/AVProVideo/Runtime/Scripts/Internal/Helper.cs:183)
RenderHeads.Media.AVProVideo.WindowsMediaPlayer:Update () (at Assets/AVProVideo/Runtime/Scripts/Internal/Players/WindowsMediaPlayer.cs:827)
RenderHeads.Media.AVProVideo.MediaPlayer:Update () (at Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:823)
Chris-RH commented 1 year ago

Are you able to send us a test url? unitysupport@renderheads.com

Chris-RH commented 1 year ago

Are you able to send us a test url? unitysupport@renderheads.com

Chris-RH commented 1 year ago

Closed due to lack of reply