06-15-2018, 08:06 AM
Hello,
In my project I need to apply shaders on a webcam video flux in real-time and show the result on fullscreen.
Webcam output can be MjPEG or H.264, thus we also need to use hardware for the decoding process.
Maybe there is different way to achieve it.
I tried to use OpenCV with OpenGL. However the OpenCV doesn't use hardware acceleration to decode the camera flux.
I've compiled and installed it on a ayufan Bionic lxde 0.6.41 image. I've also tried to do this on Stretch 0.5.15. Other more recent version or Bionic or Stretch doesn't boot on my Rock64 board.
Hardware acceleration seems to work because rkmpv is able to display nearly real-time webcam video, there is juste a huge latency reducing over the time.
Do you have ideas to make OpenCV use GPU or another app/library etc to to realize it with OpenGL ?
Thank you very much in advance.
In my project I need to apply shaders on a webcam video flux in real-time and show the result on fullscreen.
Webcam output can be MjPEG or H.264, thus we also need to use hardware for the decoding process.
Maybe there is different way to achieve it.
I tried to use OpenCV with OpenGL. However the OpenCV doesn't use hardware acceleration to decode the camera flux.
I've compiled and installed it on a ayufan Bionic lxde 0.6.41 image. I've also tried to do this on Stretch 0.5.15. Other more recent version or Bionic or Stretch doesn't boot on my Rock64 board.
Hardware acceleration seems to work because rkmpv is able to display nearly real-time webcam video, there is juste a huge latency reducing over the time.
Do you have ideas to make OpenCV use GPU or another app/library etc to to realize it with OpenGL ?
Thank you very much in advance.