当我使用FFmpeg libary压缩视频时,ide显示此错误

时间:2017-05-29 14:37:05

标签: android ffmpeg

 E/FFmpeg: Exception while trying to run: /data/user/0/com.example/files/ffmpeg -y -i /storage/emulated/0/DCIM/Camera/VID_20170517_112234.mp4 -vf scale=500:-1 qscale:v 8 -acodec copy -vcodec mpeg4/storage/emulated/0/wobingwoyi/1496060268815.mp4

 java.io.IOException: Error running exec(). Command: [/data/user/0/com.wobingwoyi/files/ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/VID_20170517_112234.mp4, -vf, scale=500:-1, -qscale:v, 8, -acodec, copy, -vcodec, mpeg4, /storage/emulated/0/wobingwoyi/1496060268815.mp4] Working Directory: null Environment: null

Here is my Configuration

This is the complete error message

1 个答案:

答案 0 :(得分:0)

原因是您的库未完成,日志显示:No such file or directory。检查libs中的文件夹,确保它都有.so个文件。

enter image description here

有两种方法可以解决这个问题:

    1. 提供所有库文件
    1. 让你的库文件与abiFilters匹配(libs中的库有一个.so文件)。

enter image description here

相关问题