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

ffmpeg error code 1 #13

Open
acedigibits opened this issue Jul 15, 2021 · 5 comments
Open

ffmpeg error code 1 #13

acedigibits opened this issue Jul 15, 2021 · 5 comments

Comments

@acedigibits
Copy link

i am able to run ffprobe and get details for input path.

However if i use ffmpeg command listed below :

ffmpeg.exec("-i someinput.mp4 -vn -c:a copy out.mp3", (success) => alert(success), (failure) => alert(failure));

to convert that same video to mp3 , i get error code 1. I have permission to write to external storage and output path is set to external storage. i am unable to pinpoint what is the exact issue as i have tried all combination of output path.

@alextapia007
Copy link

alextapia007 commented Aug 12, 2021

i have the same problem... any solution?
in my case:
"-i file:///storage/emulated/0/DCIM/Camera/VID_20210812_131030.mp4 -vn -c:a copy file:///storage/emulated/0/Download/my_video.mp4"

@alextapia007
Copy link

try:
ffmpeg.exec('-i "someinput.mp4" -vn -c:a copy "out.mp3"', (success) => alert(success), (failure) => alert(failure));

at least it gives a different error.

@mcpeakdb
Copy link

mcpeakdb commented Aug 27, 2021

Hello, I believe I am running into the same issue. My first question is if my paths are correct and then the second (being new to app development) is how to confirm that I have permissions to the path.

Here is the command I am running:
ffmpeg.exec(
'-i "file:///storage/emulated/0/DCIM/Camera/0827211601a.mp4" -vn -c:a copy "file:///storage/emulated/0/my_audio.mp3"',
(success: any) => alert(success),
(failure: any) => alert(failure)
);

@mcpeakdb
Copy link

mcpeakdb commented Sep 7, 2021

For anyone else that is curious, I was able to get this working by stripping file:/// from my file paths

@hnguyen48206
Copy link

Anyone knows the way to actually get more info about an error, I also just get the error code 1 (though the loglevel has been set to debug within the ffmpeg command) which is not really helpful to address the matter.

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

4 participants