如何读取视频文件呢?
来源:2-15 开发过程中依赖的注意事项
半步不多行
2020-05-06
ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
//获取视频
String path = "C:\\gushi.mp4";
FileData readFile = null;
try {
readFile = ReadPathUtils.readFile(path);
} catch (IOException e) {
e.printStackTrace();
}
byte[] file = readFile.getBytes();
env. ?
我想要读取视频文件,然后对此进行取帧截图等操作。我该用什么呢?
写回答
1回答
-
Michael_PK
2020-05-06
是用来处理数据的,不是用来处理视频的
00
相似问题