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

mp4解码成yuv找不到文件 #318

Open
mrqinshou opened this issue Apr 7, 2023 · 1 comment
Open

mp4解码成yuv找不到文件 #318

mrqinshou opened this issue Apr 7, 2023 · 1 comment

Comments

@mrqinshou
Copy link

mrqinshou commented Apr 7, 2023

请问这个支持解码成 yuv 吗?我使用如下命令想将 mp4 文件解码成 yuv
ffmpeg -y -i /storage/emulated/0/big_buck_bunny.mp4 /storage/emulated/0/big_buck_bunny.yuv
代码是这样的:

RxFFmpegInvoke.getInstance().runCommandAsync(new String[]{"ffmpeg", "-y", "-i", "/storage/emulated/0/big_buck_bunny.mp4", "/storage/emulated/0/big_buck_bunny.yuv"}, new RxFFmpegInvoke.IFFmpegListener() {
@OverRide
public void onFinish() {
Log.i(TAG, "onFinish: ");
}

@Override
public void onProgress(int progress, long progressTime) {
    Log.i(TAG, "onProgress: " + "progress--->" + progress + ",progressTime--->" + progressTime);
}

@Override
public void onCancel() {
    Log.i(TAG, "onCancel: ");
}

@Override
public void onError(String message) {
    Log.i(TAG, "onError: " + message);
}

});

但是提示找不到文件,我并没有预先创建 big_buck_bunny.yuv,存储权限也是有的

@microshow
Copy link
Owner

ffmpeg -y -i /storage/emulated/0/1/input.mp4 -preset superfast /storage/emulated/0/1/result.yuv 试了一下可以的。看看是不是存储权限的问题,或者在demo apk上试试

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

2 participants