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

How to address input and output files? #3

Open
arasrezaei opened this issue Nov 8, 2020 · 4 comments
Open

How to address input and output files? #3

arasrezaei opened this issue Nov 8, 2020 · 4 comments

Comments

@arasrezaei
Copy link

I am using Capacitor which is Ionics Cordova alternative.
I tried code below:

ffmpeg.exec(
      "-i storage/emulated/0/Documents/digipro/video/video_one.mp4 -vn -c:a copy storage/emulated/0/out.mp3",
      (s: any) => console.log(s),
      (e: any) => console.log(e)
    );

it throws error code 1.
I changed input and output path (with file:// or http://localhost/_capacitor_file_/ scheme) but neither working

@arasrezaei
Copy link
Author

solved,
problem was using codecs like "libvpx" that throwed errors

@adminy
Copy link
Owner

adminy commented Nov 8, 2020

makes sense, also make sure your IO is available for read/write

@arasrezaei
Copy link
Author

which libraries added to it?
how to add libx264 for example

@adminy
Copy link
Owner

adminy commented Nov 9, 2020

have a look at this

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