Closed cecarlsen closed 1 year ago
Hi @cecarlsen, If you use Directshow video API, it is more accurate the MediaFoundation.
I am already using DirectShow. I need accurate, not "more accurate".
We believe this is a rounding error. Whilst we investigate, you can make the following adjustment in Helper.cs that should provide you with a 1:1 relationship. Do let us know.
Thanks for getting back @Ste-RH unfortunately it does not help. I am testing using the test project I send you. Unity 2020.1.11.f1.
Using the editor to pause is not a reliable way to test.
Instead I added video pausing/playing to your AVProVideoMediaPlayerController class:
void Update()
{
if (Input.GetKeyUp(KeyCode.Q))
{
_player.Pause();
}
if (Input.GetKeyUp(KeyCode.P))
{
_player.Play();
}
}
Aha! I see. It actually works. + 0.01 ... who would have known! Thank you =)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the issue The actual frame displayed and the frame index that you can deduct from the values provided by AVProVideo does not always match up. This is extremely important in my case because I am unpacking each frame using frame index specific metadata.
Your Setup (please complete the following information):
To Reproduce
Screenshots
Forum posts https://forum.unity.com/threads/released-avpro-video-complete-video-playback-solution.385611/page-98#post-8320803 https://forum.unity.com/threads/released-avpro-video-complete-video-playback-solution.385611/page-98#post-8390547