更新时间:2021-10-04 17:02:03
我实际上使用Mp4Parser
找到了我要查找的内容以下是使用Mp4Parser获得我想要的内容的简单代码行
FileChannel fc = new FileInputStream("content/Video_720p_Madagascar-3.mp4").getChannel();
IsoFile isoFile = new IsoFile(fc);
MovieBox moov = isoFile.getMovieBox();
for(Box b : moov.getBoxes()) {
System.out.println(b);
}
b包含我需要的所有信息,现在我只需分析b即可获得我想要的内容。