bravobit / FFmpeg-Android

FFMpeg/FFprobe compiled for Android
https://bravobit.nl/
MIT License
739 stars 175 forks source link

how could i change the path of ffmpeg ? #55

Closed mohamedmorsi95 closed 5 years ago

mohamedmorsi95 commented 6 years ago

how could i change the path of ffmpeg because there is some different storage architecture with some devices that is why i had this error

java.io.IOException: Cannot run program "/data/user/0/(package.name)/files/ffmpeg": error=2, No such file or directory

the path of this storage is "/storage/emulated/0/package.name/ffmpeg/"

Brianvdb commented 6 years ago

Are you excluding FFmpeg for specific architectures? Please provide some more details.

mwshubham commented 6 years ago

Happen with me when i usedignoreAssetsPattern "!ffprobe:!x86:" thus ignored ffmpeg for x86 architecture

prolok commented 6 years ago

I also have the same issue. Previously I used https://github.com/WritingMinds/ffmpeg-android-java and changed to use this by updating the build.gradle file. But on both android 7 and 8 I also got java.io.IOException: Cannot run program "/data/user/0/package.name/files/ffmpeg": error=2, No such file or directory. Any idea on how can I handle it?

prolok commented 6 years ago

@Brianvdb The ffmpeg (and also ffprobe) file is never copied from assets to the file system in the project. Looks like this project is not supposed to be used alone, or something else is missing in the latest version?

anilson commented 5 years ago

FFmpeg.getInstance(this).isSupported() will perform the installation. See lines 42-77 in FFmpeg.java

Brianvdb commented 5 years ago

@anilson is right.

FFmpeg.getInstance(this).isSupported()

Will fix the issue.