在Android上執行ffmpeg command line.
修改ffmpeg.c,添加jni.
基於預編譯庫編譯新的庫.
ProcessBuilder使用編譯好的libffmpeg.so 执行ffmpeg command line
DEMO截图
ffmpeg -i /Users/Arjun/Downloads/a.mov -r 5 -f /Users/Arjun/Downloads/image-2%d.jpeg ffmpeg -i /Users/Arjun/Downloads/b.mov -r 10 -q:v 2 -f image2 /Users/Arjun/Downloads/image-%d.jpeg
ffmpeg -i /Users/Arjun/Downloads/a.mov -vcodec copy -acodec copy -ss 00:00:00.55 -to 00:00:03.52 /Users/Arjun/Downloads/b.mov -y -ss time_off