一、后端
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacv-platform</artifactId>
<version>1.4.4</version>
</dependency>
public static void main(String[] args) throws FrameGrabber.Exception, FrameRecorder.Exception, NoSuchFieldException, IllegalAccessException {
final int captureWidth = 1280;
final int captureHeight = 720;
final FFmpegFrameGrabber grabber = new FFmpegFrameGrabber("rtsp://账号:密码@ip:端口");
grabber.setImageWidth(captureWidth);
grabber.setImageHeight(captureHeight);
// rtsp格式一般添加TCP配置&#x