ffmpeg-android-java icon indicating copy to clipboard operation
ffmpeg-android-java copied to clipboard

auto rotate after compress

Open bhavinphoenix opened this issue 5 years ago • 2 comments

execFFmpegBinary(new String[]{"-y", "-i", path, "-s", "160x120", "-r", "25", "-vcodec", "mpeg4", "-b:v", "150k", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath});

auto rotate after compress is there any solution?

bhavinphoenix avatar Mar 19 '20 07:03 bhavinphoenix

use -noautorotate flag for disable FFMPEG auto rotate feature

execFFmpegBinary(new String[]{"-noautorotate","-y", "-i", path, "-s", "160x120", "-r", "25", "-vcodec", "mpeg4", "-b:v", "150k", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath});

russellghana avatar Mar 19 '20 09:03 russellghana

what if i want default height and width of video?

execFFmpegBinary(new String[]{"-noautorotate", "-y", "-i", path, "-s", "800x600", "-r", "25", "-vcodec", "mpeg4", "-b:v", "150k", "-b:a", "48000", "-ac", "2", "-ar", "22050", filePath});

bhavinphoenix avatar Mar 19 '20 09:03 bhavinphoenix