java如何获得网络rtsp流高手指点下最好给一个demo小弟先谢过了
发布网友
发布时间:2022-04-24 02:01
我来回答
共2个回答
热心网友
时间:2023-10-20 14:49
用javacv库
import org.bytedeco.javacv.FFmpegFrameGrabber;
import org.bytedeco.javacv.FrameGrabber.Exception;
方法里写:FFmpegFrameGrabber grabber = new FFmpegFrameGrabber( "视频流");
热心网友
时间:2023-10-20 14:49
File file = new File("D:/zj.txt");
InputStream is = new FileInputStream(file)
is就可以从该file里读取数据了,
int length = 0;
byte[] b = new byte[200];
while(-1 != ( length = is.read(b[200]) )
{
System.out.print(new String(b, 0, length));
}
is.close();
热心网友
时间:2023-10-20 14:49
用javacv库
import org.bytedeco.javacv.FFmpegFrameGrabber;
import org.bytedeco.javacv.FrameGrabber.Exception;
方法里写:FFmpegFrameGrabber grabber = new FFmpegFrameGrabber( "视频流");
热心网友
时间:2023-10-20 14:49
File file = new File("D:/zj.txt");
InputStream is = new FileInputStream(file)
is就可以从该file里读取数据了,
int length = 0;
byte[] b = new byte[200];
while(-1 != ( length = is.read(b[200]) )
{
System.out.print(new String(b, 0, length));
}
is.close();