use fmpeg to compress mp4 video ffmpeg -i "input.MP4" -vb xxxk -vcodec libx264 -ab 64k -ar 44100 -y "output_.MP4" xxxk: You should adjust its size according to your needs. For example i use 2000k to compress Gopro mp4 videos.