Put simply; you can legally use music in videos if you have permission from the person, people, or company who owns the rights. Since the publisher and the record label usually hold music rights, you'll have to get permission from both.