I have my video editor set to that the project matches the video settings. But when I play the video both in the preview and after render there is a large amount of compression artifices, none of which were in the source video.
I've had a similar problem, was from some files from a video capture program (Debut).
The files looked great in regular media players, but when brought in to edit they looked really bad, glitchy. There was ghosting, pixelating and artifacts that are not present in the original file, even in preview. I was hoping the problem was only in preview, but the output was just as terrible.
It seemed to be some sort of compatibility hiccup with those specific mp4 files.
As a work around I recompressed the clips with a converter first, then brought in the new files. If you don't want any quality loss when converting, go with a lossless format. Brace yourself for huge filesizes though.