Swap second and third frame of every three frames of the input:

ffmpeg -i INPUT -vf "shuffleframes=0 2 1" OUTPUT

Swap 10th and 1st frame of every ten frames of the input:

ffmpeg -i INPUT -vf "shuffleframes=9 1 2 3 4 5 6 7 8 0" OUTPUT