更新时间:2022-02-20 22:44:19
我实际上使用 Mp4Parser 找到了我想要的东西
I actually found what I was looking for using Mp4Parser
这里是一个简单的代码行,可以使用Mp4Parser得到我想要的东西
here is a simple lines of code to get what I wanted using 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到得到我想要的。
b contains all the info I needed, now I just have to parse b to get exactly what I want.