sannies / mp4parser

A Java API to read, write and create MP4 files
Apache License 2.0
2.76k stars 567 forks source link

Rotate Content #441

Open mmmahdiii opened 3 years ago

mmmahdiii commented 3 years ago

Hi I write a code using MP4parser to rotate a mp4 file in Android and using something like this: setMatrix(Matrix.ROTATE_90);

it's compiled, and I guess, makes some changes in metadata but it doesn't make any changes in height and weight.

so I tried javaCV: FFmpegFrameGrabber .grabImage() .convert(grabbedImage); ROTATE_90_CLOCKWISE it's work well, but output APK is huge,

can any one show me a solution to solve my problem using MP4parser?

thanks