Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries regarding time to decode and switch videos #1

Open
spaul13 opened this issue Apr 5, 2019 · 0 comments
Open

Queries regarding time to decode and switch videos #1

spaul13 opened this issue Apr 5, 2019 · 0 comments

Comments

@spaul13
Copy link

spaul13 commented Apr 5, 2019

First of all great project. It seems like it uses GPU to decode. But I want to know how to get the decoding time of a video file?

I am switching the video file after some time.
if (Input.GetMouseButtonDown(0))
{
fID++;
m_VideoPath = "file:///E:/" + fID.ToString() + ".mp4";
OpenVideoFromFile();
Play();
}

Can u please tell me how to check the time to display the first frame from a video from changing the m_VideoPath (switching time). I am using 360 videos.
FYI, My 360 videos consist only 1 I frame.

Does it decode and display frames asynchronously?

--> I observed the changing the video file to the First frame to ready for play takes almost 50 ms. Is there any way to reduce this playback time?

For me, it seems like there is flashing on the screen whenever I am changing the video. Any suggestion on how to check the timing and can I effectively switch the videos to achieve 60 FPS will be highly helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant