java.io.ioexception权限被拒绝android

时间:2015-01-30 08:01:28

标签: android ffmpeg

我希望通过在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命令

向我提出建议

提前致谢。

0 个答案:

没有答案