Actually it is not enough to add -strict -2
to the command line. It is very important where the -strict -2
is added and unfortunately this is not explained in the error message. It should be just before the last argument, that is, as follows:
ffmpeg -i infile -strict -2 outfile