Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Android after I run the FFMPEG command has been mixed mp4 & mp3 files but mp4 audio file after the mix has been lost. How can I keep the mp4 audio.

My command (run ok but background music karaoke mp4 file is lost.)

ffmpeg -i /sdcard/music.mp3 -i/sdcard/video.mp4 -acodec copy -vcodec copy /sdcard/newvideo.mp4

I want to mix karaoke mp4 video file with my voice (audio.mp3) so I want to merge the audio stream of each input into one output audio stream. I had mixed success, but the background music karaoke mp4 file is lost.

I was suggested this command

ffmpeg -i input0 -i input1 -c:v copy -filter_complex "[0:a][1:a]amerge,pan=stereo:c0<c0+c2:c1<c1+c3" output

and I tried on Terminal but failed(image on ubuntu). Can you help me, thank you very much. I will post the entire Android source code to run this command. I hope you will help me.

share|improve this question
    
You're using an old and outdated version of the FFmpeg-fork Libav, incorrectly called ffmpeg. Please either download a recent ffmpeg or use Libav's avconv instead. –  slhck Jun 24 '13 at 7:54
    
Thank you very much, I have changed -filter_complex ==> -filter:v and successfully run a few commands related to the filter, but when running the command above, it still fails. link error –  Noe Love Jun 24 '13 at 8:12
    
Can you please put the errors (the full log output) into your question, not in a screenshot? That way they're much easier to read and index. Thank you! –  slhck Jun 24 '13 at 8:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.