Use ffmpeg. It's the swiss army knife for video converting/editing. Once it's installed, enter the following command on the command line:
ffmpeg -i input.mov -vf "vflip" output.mov
Look at following answer: https://superuser.com/questions/578321/how-to-flip-a-video-180-vertical-upside-down-with-ffmpeg