[FFmpeg-user] Concatenating video cuts - audio gets out of sync...

Bo Berglund bo.berglund at gmail.com
Fri Dec 17 12:08:54 EET 2021

On Wed, 15 Dec 2021 13:45:13 +0100, Michael Koch <astroelectronic at t-online.de>

>> COMMAND="ffmpeg -f concat -safe 0 -i $JOINFILE -c copy $TARGETFILE"
>> eval "$COMMAND"
>> eval "rm $JOINFILE"
>> exit 0
>> ------------------
>> This has worked mostly well but now I have a problem when pasting two clips from
>> a video where the audio gets badly out of sync at the paste point.
>> Is there some way to modify the ffmpeg command such that the audio is not
>> affected like this?
>You could remove -c copy, but that makes the process much slower.

Do you mean removing or exchange for something else?
Can I keep the copy for video but re-encode for audio?
Some ffmpeg command suggestion?

Bo Berglund
Developer in Sweden

More information about the ffmpeg-user mailing list