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

Video Decoding on windows is too slow #19

Open
spaul13 opened this issue Feb 25, 2019 · 3 comments
Open

Video Decoding on windows is too slow #19

spaul13 opened this issue Feb 25, 2019 · 3 comments

Comments

@spaul13
Copy link

spaul13 commented Feb 25, 2019

The video with just one 1 I frame and 4 P frame is taking almost (~25 ms to allocate and initialize decoder context and additionally more than 100 ms is needed to decode it make the state from buffering to state) which implies the FPS that viveMediaPlayer can support is less than 10 FPS.

can anyone please tell me Why it's too slow? and is there any way to improve this? I am using viveMediaPlayer on Unity windows platform.

@kyo8568131
Copy link
Contributor

It could be divided to two things:

  • For initialization: loading file may related to disk and CPU. Please check your hardware if you want more performance.
  • For decoding: this plugin is CPU decoding. If it still too slow for you, you could modify the native code to support GPU decoding. Or check the other video format for better decoding performance.
    Thanks.

@spaul13
Copy link
Author

spaul13 commented Mar 6, 2019

@kyo8568131, can u please tell me how to change the native code to support GPU decoding?

@kyo8568131
Copy link
Contributor

You can check the sample code hw_decode.c in FFmpeg development build. And also check the official reference page: https://trac.ffmpeg.org/wiki/HWAccelIntro

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

2 participants