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

Nov 2016
Suresh Kumar Sivasankaran
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 -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´╗┐