它工作正常,但我想知道如何使用这个`ffmpeg -y -i /sdcard/videokit/short.mp4 -vf裁剪= 100:100:0:0 -s 320x240 -r 15 -aspect 3:4 -ab 12288 -vcodec mpeg4 -b 2097152 -sample_fmt s16 /sdcard/videokit/out.mp4
`video cropping command and Where to write this command。
我曾经尝试这样做(上述连结只是为了检查有关如何使用ffmpeg的命令)
public class MainActivity extends Activity {
private static native int logFileInfo(String[] args);
String pathOut = "/storage/sdcard/12.mp3";
String pathInM = "/storage/sdcard/23.mp3";
String pathIn = "/storage/sdcard/out.mp3";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String[] args = {"ffmpeg", "-i", "concat:", pathOut, "|",pathInM ,pathIn};
logFileInfo(args);
//logFileInfo("/storage/sdcard/12.mp3");
}
static
{
System.loadLibrary("mylib");
}
但我不知道在mylib.c执行写this.somebody请帮