This paper presents a novel block matching algorithm for motion estimation in video compression, combining the three-step and diamond search methods to improve speed and accuracy. It addresses the challenges of limited bandwidth and computation time by optimizing block matching processes without compromising video quality. Experimental results indicate that the proposed algorithm significantly enhances PSNR and reduces computation time compared to existing algorithms.