Open hamaianh opened 4 years ago
Sorry,I wouldn't get u..can you tell me in detail!
Hi you, E.g In metadata, video before use compression has rotate:90, but after compression then no longer see that attribute (rotate in metadata) Please help me check it?
Do you have idea?
It won't make any changes in metadata.However,check the video rotation before open the trimmer activity.or else share the code which is you used to get the rotation of the video
public static String getRotation(Activity context, Uri videoUri) {
try {
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
retriever.setDataSource(context,videoUri);
int width = Integer.parseInt(retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION));
retriever.release();
return String.valueOf(width);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
Hi you, Please let me know, after compress video then not return rotate?