-
Notifications
You must be signed in to change notification settings - Fork 846
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
[ReactNative] FFmpegKitConfig.getSafParameterForWrite return -1.unknown with absolute path #205
Comments
|
I was stuggling what casued returnCode -1 when I was using manually created absolute path as outpath (worked for ios), so tried to use log
|
Would you mind sharing something we can use to reproduce this? Hard to say what is wrong by just looking at logs. Also, we don't see any issues with the current implementation in the test applications we have under ffmpeg-kit-test. |
Here is a minified repo which could reproduce the issue. Mainly converting HEVC to AVC. Code related are in Platform: React Native |
Thanks.
I noticed we haven't documented this behaviour properly in the docs & README. So, I mark this issue as |
In |
Description
Doing React Native video conversion, I reckon path conversion is needed for android. Failed to convert video with absolute path (maybe I was using wrong absolute path syntax for android?)
For inputPath, I am able to convert successfully as the original path is get from file system and tested and used inputSafUrl on
FFprobeKit.getMediaInformationAsync
.However I fail to do the same for outputPath as I am using absolute path?
Expected behavior
Convert path to saf path so ffmpeg can read.
Current behavior
saf:-1.unknown
is returned fromFFmpegKitConfig.getSafParameterForWrite
To Reproduce
For context, video conversion using
FFmpegKit.executeAsync
with argument:-y -i ${inputPath} -map 0 -c:v libx264 -crf 18 -c:a copy ${outputPath}"
The part including FFmpegKitConfig.getSafParameterForWrite:
Screenshots
Logs
Environment
The text was updated successfully, but these errors were encountered: