I think I have isolated the problem. The camera-unit that I used for filming was an all-in-one helmet camera that codes the video using XviD, for some reason that seems to cause the problem. I converted a clip, that was having problems, to an AVI and used that clip, and now the transition is smooth. I do not know enough about codec to explain why this is the case, all I know is that it worked.