These are chat archives for WritingMinds/ffmpeg-android-java

29th
Nov 2016
Suresh Kumar Sivasankaran
@Sureshkumars
Nov 29 2016 12:09
Got it done! Thanks addy :smile:

How can I add multiple audio files dynamically to replace them with the existing audio in the desired time positions of video?

I used this command with atrim filter but I can't do that. Please help me asap. Thanks in advance.

ffmpeg -i video.mov -i audio1.mp3 -i audio2.mp3 -filter_complex \
"[1:a]atrim=end=10,asetpts=PTS-STARTPTS[a1]; \
[2:a]atrim=end=10,asetpts=PTS-STARTPTS[a2]; \
[a1][a2]concat=n=2:v=0:a=1[a] \"
-map 0:v -map "[a]" -codec:v copy -codec:a libmp3lame -shortest output.mov´╗┐