Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory #83

Open
JasonAndujar opened this issue Feb 12, 2018 · 2 comments
Open

No such file or directory #83

JasonAndujar opened this issue Feb 12, 2018 · 2 comments

Comments

@JasonAndujar
Copy link

upon executing this command:
-f gif -i /data/user/0/it.trashitaliano.trashitaliano/cache/image_manager_disk_cache/44507fd3f371631fd348ea4e2edef3acdae528735384106029bd112bc754383d.gif -pix_fmt yuv420p -c:v libx264 -movflags +faststart -filter:v crop='floor(in_w/2)*2:floor(in_h/2)*2' /data/user/0/it.trashitaliano.trashitaliano/app_ffmpeg/1518396926930.mp4

I consistently receive this error:

Exception while trying to run: [Ljava.lang.String;@4968996
          java.io.IOException: Cannot run program "/data/user/0/it.trashitaliano.trashitaliano/files/ffmpeg": error=2, No such file or directory

Upon doing some research, in FFmpegExecuteAsyncTask always adds the first command being
/data/user/0/it.trashitaliano.trashitaliano/files/ffmpeg

Why is this? How can I change the output location for the file?

Thanks!

@KonradIT
Copy link

KonradIT commented Mar 3, 2018

I also get this error.

@atiffarrukh
Copy link

Hi, you need to load the binary after getting ffmpeg.getInstance(context);

        try {
            fFmpeg.loadBinary(new FFmpegLoadBinaryResponseHandler() {
                @Override
                public void onFailure() {
                    Timber.d("Not supported");
                }

                @Override
                public void onSuccess() {

                }

                @Override
                public void onStart() {

                }

                @Override
                public void onFinish() {

                }
            });
        } catch (FFmpegNotSupportedException e) {
            e.printStackTrace();
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants