如何使用mp4Parser创建视频的镜像值。如果可能,矩阵的值将起作用。请帮帮我..
发布于 2014-08-13 21:59:28
矩阵是:
-1 0 0
0 1 0
0 0 1此代码将矩阵设置为文件中的第一个轨道:
IsoFile isoFile = new IsoFile("input.mp4");
TrackHeaderBox tkhd =
(TrackHeaderBox) Path.getPath(isoFile, "/moov[0]/trak[0]/tkhd[0]");
tkhd.setMatrix(new Matrix(-1, 0, 0, 1, 0, 0, 1, 0, 0));
FileOutputStream fos = new FileOutputStream("output.mp4");
isoFile.getBox(fos.getChannel());但请注意,并不是所有的玩家都支持矩阵变换。
https://stackoverflow.com/questions/24446504
复制相似问题