I believe the best way to do this is through ffmpeg (Windows build – http://ffmpeg.zeranoe.com/builds/, others –https://ffmpeg.org/).
Copy your input video (ex: in.mp4 to the ffmpeg bin folder). Open up the command line and navigate to the same bin folder and enter this command. Here out.mp4 is the output video.
ffmpeg -i in.mp4 -crf 20 out.mp4
It works for most videos extremely well. Saved me when my videos were over the size limit for research submissions.