bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.41k stars 1.57k forks source link

javacv uses gpu acceleration #2104

Closed sulv9999 closed 5 months ago

sulv9999 commented 9 months ago

Hi, I was wondering how to configure javacv to read rtsp streams using gpu acceleration, I tried using GpuMat objects and it didn't seem to work, thank you

saudet commented 5 months ago

You'll need to call setVideoCodeName() with the name of the hardware accelerated codec you want to use: https://trac.ffmpeg.org/wiki/HWAccelIntro

saudet commented 5 months ago

Duplicate of #2115