I'm trying to overwrite the audio at a specific offset to provide commentary. I've been struggling with the correct way to do this with ffmpeg, but found some use of atrim:
ffmpeg -y -i original.flac -i replacement.flac \
-filter_complex "[0]atrim=0:2[Apre];[0]atrim=5,asetpts=PTS-STARTPTS[Apost];\
[Apre][1][Apost]concat=n=3:v=0:a=1" out.flac
I was wondering if you could help me find a way to do this with this or if perhaps there is a better way.
I'm trying to overwrite the audio at a specific offset to provide commentary. I've been struggling with the correct way to do this with ffmpeg, but found some use of atrim: