When I am using grabber and recorder to codec the rtmp live stream, the cpu utilization of the java program is not running up. How can I improve the CPU utilization of javacv when I am using version 1.5.10
my code :
package com.mango5g.media.cloud.service.listener;
When I am using grabber and recorder to codec the rtmp live stream, the cpu utilization of the java program is not running up. How can I improve the CPU utilization of javacv when I am using version 1.5.10 my code : package com.mango5g.media.cloud.service.listener;
import lombok.extern.slf4j.Slf4j; import me.zhyd.oauth.utils.StringUtils; import org.bytedeco.ffmpeg.global.avcodec; import org.bytedeco.ffmpeg.global.avutil; import org.bytedeco.javacv.*; import org.bytedeco.opencv.global.opencv_imgcodecs; import org.bytedeco.opencv.opencv_core.Mat;
import java.io.IOException; import java.nio.ShortBuffer; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicBoolean;
@Slf4j public class StreamEngine { private final long restartLength; private String MAJOR_STREAM_URL;
}