ViveSoftware / ViveMediaDecoder

A high performance video decoding Unity plugin for Windows.
http://u3d.as/usf
Other
129 stars 36 forks source link

Video Decoding on windows is too slow #19

Open spaul13 opened 5 years ago

spaul13 commented 5 years ago

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 commented 5 years ago

It could be divided to two things:

spaul13 commented 5 years ago

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

kyo8568131 commented 5 years ago

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