RenderHeads / UnityPlugin-AVProVideo

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

Incorrect frame count in 2.5.3 #1223

Closed artoonie closed 2 years ago

artoonie commented 2 years ago

Describe the issue Frame count incorrect, new in 2.5.3

Your Setup (please complete the following information):

To Reproduce

  1. Load video
  2. Notice: MediaPlayer.Info.GetDurationFrames(), MediaPlayer.Info.GetVideoFrameRate(), m_MediaPlayer.Info.GetDuration() and MediaPlayer.Info.GetMaxFrameNumber() are all incorrect - all based on having 118 frames instead of 310

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos This happens on every video I've tried in 2.5.3, and is not reproducible in 2.5.1. (I have not tried 2.5.2.) https://user-images.githubusercontent.com/537316/177413469-fc83de0c-c7c9-47d8-8546-9c4f1c13738b.mp4

MorrisRH commented 2 years ago

Have you adjusted the max playback rate?

MorrisRH commented 2 years ago

Assuming this is the case as I've been able to reproduce it, this doesn't show up if using the default max playback rate. A fix will make it into the next release.

artoonie commented 2 years ago

Thank you! Yes, confirming that I have adjusted Max Playback Rate.