javacv
javacv copied to clipboard
CPU utilization
I use javacv to convert RTSP to RTMP, but in the process of using it, I find that the CPU occupation rate is very high. In this process, I use frame. Later, I learned that avpacket can be used, but I need to use face recognition in this process and draw it on the graph
For the frame object used, do I need to recycle it manually by using the close () method?
The close() method won't do anything when it doesn't own itself like this. You can call it if you want.
When the Frame is no longer used, will it recycle itself
It gets deallocated when the owner, in this case FFmpegFrameGrabber, is closed.