-1

以下のコマンドを使用して、デフォルトのカメラで最初にキャプチャされたビデオからビデオをトリミングしました。しかし、コマンドを実行すると、以下のエラーが発生します。

 final String[] cmd={"-i", "/storage/emulated/0/DCIM/ZyfVideo/VID_20170914_153804.mp4","-s", "480x480" ,"-vf" ,"crop=480:480","setdar=1:1","setsar=1:1 ","/storage/emulated/0/Movies/SpoofApp/VDO_20170914_153811.mp4"};

エラーログキャット:

09-14 15:38:11.874 3872-4039/com.spoof.app E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@427ce088
                                                     java.io.IOException: Error running exec(). Command: [/data/data/com.spoof.app/files/ffmpeg, -i, /storage/emulated/0/DCIM/ZyfVideo/VID_20170914_153804.mp4, -s, 480x480, -vf, crop=480:480, setdar=1:1, setsar=1:1 , /storage/emulated/0/Movies/SpoofApp/VDO_20170914_153811.mp4] Working Directory: null Environment: null
                                                         at java.lang.ProcessManager.exec(ProcessManager.java:211)
                                                         at java.lang.Runtime.exec(Runtime.java:173)
                                                         at java.lang.Runtime.exec(Runtime.java:128)
                                                         at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
                                                         at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
                                                         at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
                                                         at android.os.AsyncTask$2.call(AsyncTask.java:288)
                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                         at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                         at java.lang.Thread.run(Thread.java:841)
                                                      Caused by: java.io.IOException: No such file or directory
                                                         at java.lang.ProcessManager.exec(Native Method)
                                                         at java.lang.ProcessManager.exec(ProcessManager.java:209)
                                                         at java.lang.Runtime.exec(Runtime.java:173) 
                                                         at java.lang.Runtime.exec(Runtime.java:128) 
                                                         at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10) 
                                                         at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38) 
                                                         at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10) 
                                                         at android.os.AsyncTask$2.call(AsyncTask.java:288) 
                                                         at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
                                                         at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) 
                                                         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
                                                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
                                                         at java.lang.Thread.run(Thread.java:841) 
4

1 に答える 1