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

Activity automatically destroy when trying to merge audio and video #18

Open
pateljc opened this issue Apr 30, 2018 · 2 comments
Open

Comments

@pateljc
Copy link

pateljc commented Apr 30, 2018

public void mergeAudioVideo(String audioFile, String videoFile, String mergedFile) { Controller.getInstance().run(new String[]{ "-i", videoFile, "-i", audioFile, "-c", "copy", "-map", "0:0", "-map", "1:0", mergedFile }); }
here is the code i m using for audio video merger

@madhavanmalolan
Copy link
Owner

madhavanmalolan commented May 3, 2018

Are you sure this is the right command?
https://superuser.com/questions/590201/add-audio-to-video-using-ffmpeg#590210

If yes, can you please provide the logs that come up before the crash?
Can you mention the file paths used?
Do you have permission to write to external storage?

@mohamedmorsi95
Copy link

mohamedmorsi95 commented Jul 6, 2018

i have the smae problem bur with audio bitrate my Controller.getInstance().run(new String[]{ "-i", songPath, "-b:a 8k", getOutputPath(songPath)});
i have checked what you have said @madhavanmalolan
but it still occurs and there is no error just the activity destroy
the only suspect lines in the log
07-06 02:33:19.136 19897-19897/com.mohamedmorsi.audiocompressor I/Videokit: start run in main. 07-06 02:33:19.136 19897-19897/com.mohamedmorsi.audiocompressor I/Videokit: register_exit 07-06 02:33:19.137 19897-19897/com.mohamedmorsi.audiocompressor I/Videokit: term_init & parse options.
if any one could help

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