cropsly / ffmpeg-android-java

Android java library for FFmpeg binary compiled using https://github.com/writingminds/ffmpeg-android
http://writingminds.github.io/ffmpeg-android-java
GNU General Public License v3.0
3.33k stars 829 forks source link

auto rotate after compress #354

Open bhavinphoenix opened 4 years ago

bhavinphoenix commented 4 years ago

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?

russellghana commented 4 years ago

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});
bhavinphoenix commented 4 years ago

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});