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

Playback stops when seeking after playing a video for a long time #1771

Closed clouds0072 closed 6 months ago

clouds0072 commented 6 months ago

Describe the issue After streaming an MP4 video for more than an hour, calling MediaPlayer.Control.Seek() causes the video to stop playing.

The following log is output. [AVProVideo] Error: Decode failed. Possible codec not supported, video resolution/bit-depth too high, or insufficient system resources.

Your Setup (please complete the following information):

To Reproduce

  1. Upload a MP4 file to AWS S3
  2. Play the MP4 video for an hour.
  3. Call MediaPlayer.Control.Seek()

Logs

[AVProVideo] Error: Decode failed. Possible codec not supported, video resolution/bit-depth too high, or insufficient system resources. UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) UnityEngine.Logger:Log (UnityEngine.LogType,object) UnityEngine.Debug:LogError (object) RenderHeads.Media.AVProVideo.MediaPlayer:UpdateErrors () (at /Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:1415) RenderHeads.Media.AVProVideo.MediaPlayer:Update () (at /Assets/AVProVideo/Runtime/Scripts/Components/MediaPlayer.cs:828)

Chris-RH commented 6 months ago

Hi @clouds0072,

Is this with Media Foundation/DirectShow/WinRT? Do any of the others not have this issue? Have you had the same issues playing a video locally?

Chris-RH commented 6 months ago

Hi @clouds0072,

Is this with Media Foundation/DirectShow/WinRT? Do any of the others not have this issue? Have you had the same issues playing a video locally?