Fiinal Cut Pro X can certainly do that, it's a pretty basic feature I'd expect in any video editing software. Theres a free trial that's fully functional for 30 days: https://www.apple.com/final-cut-pro/trial/
Have not used iMovie for many years, but I think it will also do this and it's included free with every Mac.