We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
压缩命令如下 binding.editText.setText("ffmpeg " + "-y -i /storage/emulated/0/DCIM/Camera/测试视频ios-iphonex.mp4 " + "-b:v 2097k " + "-vcodec libx264 " + //"-vf "scale='min(1920, iw)':'-1'" " + //如果小于宽度1920,就不动分辨率,如果宽度大于1920就缩小到1920。scale的用法很灵活,具体参考https://trac.ffmpeg.org/wiki/Scaling "-vf "scale='min(1920,iw)':'-1'" " + "-preset superfast /storage/emulated/0/DCIM/Camera/测试视频ios-iphonex1.mp4");
The text was updated successfully, but these errors were encountered:
ffmpeg -y -i /storage/emulated/0/1/input.mp4 -b:v 2079k -vcodec libx264 -vf scale=320:320 -preset superfast /storage/emulated/0/1/result.mp4
Sorry, something went wrong.
我这边在项目内集成调用直接闪退,跟ffmpeg相关的日志就只有这些
No branches or pull requests
压缩命令如下
binding.editText.setText("ffmpeg " +
"-y -i /storage/emulated/0/DCIM/Camera/测试视频ios-iphonex.mp4 " +
"-b:v 2097k " +
"-vcodec libx264 " +
//"-vf "scale='min(1920, iw)':'-1'" " + //如果小于宽度1920,就不动分辨率,如果宽度大于1920就缩小到1920。scale的用法很灵活,具体参考https://trac.ffmpeg.org/wiki/Scaling
"-vf "scale='min(1920,iw)':'-1'" " +
"-preset superfast /storage/emulated/0/DCIM/Camera/测试视频ios-iphonex1.mp4");
The text was updated successfully, but these errors were encountered: