我正在尋找將在android中執行視頻旋轉的程序代碼。如何在Android中旋轉視頻90,180或270度?
我以前使用下面的代碼完成圖像旋轉。
bMap = BitmapFactory.decodeResource(getResources(), R.drawable.aa_presell_ribs);
//Create object of new Matrix.
matrix = new Matrix();
//set image rotation value to 270 degrees in matrix.
matrix.postRotate(270);
//Create bitmap with new values.
Bitmap bMapRotate = Bitmap.createBitmap(bMap, 0, 0, bMap.getWidth(), bMap.getHeight(), matrix, true);
//put rotated image in ImageView.
imageView.setImageBitmap(bMapRotate);
我已經搜索谷歌和其他來源,但我無法找到這樣的代碼。
好的但我想旋轉視頻。有什麼辦法可以在android中進行視頻配給嗎? – Hemant