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

No such filter: '"scale' #53

Closed
protectedMan opened this issue Jun 28, 2019 · 2 comments
Closed

No such filter: '"scale' #53

protectedMan opened this issue Jun 28, 2019 · 2 comments

Comments

@protectedMan
Copy link

压缩命令如下
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");

@microshow
Copy link
Owner

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

@protectedMan
Copy link
Author

我这边在项目内集成调用直接闪退,跟ffmpeg相关的日志就只有这些
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants