The Wayback Machine - https://web.archive.org/web/20201210005629/https://github.com/WritingMinds/ffmpeg-android-java/issues/354
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto rotate after compress #354

Open
bhavinphoenix opened this issue Mar 19, 2020 · 2 comments
Open

auto rotate after compress #354

bhavinphoenix opened this issue Mar 19, 2020 · 2 comments

Comments

@bhavinphoenix
Copy link

@bhavinphoenix bhavinphoenix commented Mar 19, 2020

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?

@rasoolghana
Copy link

@rasoolghana rasoolghana commented Mar 19, 2020

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
Copy link
Author

@bhavinphoenix bhavinphoenix commented Mar 19, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.