Mirror Video in android using mp4Parser? -
how can create mirrored value of video using mp4parser. if possible value matrix work. please me..
the matrix is:
-1 0 0 0 1 0 0 0 1
this code sets matrix first track in file:
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());
but aware not players support matrix tranformations.
have here see how make videoview respect matrix .
Comments
Post a Comment