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