我希望通过在android中使用ffmpeg命令从视频中获取帧 ffmcommand同样是:
String[] ffmpegCommand = {
"ffmpeg",
"-1",
"-y ",
"-vcodec",
"mjpeg",
"-vframes",
"1",
"-an",
"-f",
"rawvideo",
"-s",
"320X240",
"-i",
Environment.getExternalStorageDirectory().getPath()
+ "/com.mobvcasting.mjpegffmpeg/video.mp4",
Environment.getExternalStorageDirectory().getPath()
+ "/com.mobvcasting.mjpegffmpeg/frame_%05d.jpg"};
在我的清单中,我已经给出了:
android.permission.WRITE_EXTERNAL_STORAGE
但我仍然得到错误:
java.io.ioexception permission denied android
请就此或其他ffmpeg
命令
提前致谢。