LOS ANGELES — YouTube said Tuesday that music videos from Warner Music Group Corp. will return to the video site in the coming months after a nine-month dispute over splitting ad revenue.

Most of the catalog of videos from artists such as Madonna, Metallica and Green Day will be available for free viewing by the end of the year.

YouTube typically gives content owners the majority of the revenue in ad-sharing deals. Under the new arrangement, Warner will get an even larger share than before because it is also bearing the burden of selling ads, which Warner will contract to an outside agency.

YouTube gains by ensuring that viewers wanting Warner music will have a reason to visit the Google Inc.-owned site.

The deal also means YouTube now has partnerships will all four major recording labels — Warner, Vivendi SA's Universal Music Group, Sony Corp. and EMI Group PLC — and their respective publishing divisions.

Warner had pulled all of its music from YouTube in December, saying the payments it received did not fairly compensate the company or its artists and songwriters.

YouTube's head of music partnerships, Chris Maxcy, said the multiyear deal was separate from the online music venture Vevo, which YouTube and Universal are launching later this year.

Warner said in a statement that YouTube users will be able to access videos and "other music-related content" from its artists, but also have access to a "feature-rich, high-quality premium player and enhanced channels." The company did not immediately return a call to elaborate.

Artists will have individual channels that will allow for greater fan interaction and give advertisers a more defined demographic for marketers to target.

The deal also covers advertising that could be attached to user-generated videos that feature songs or videos from Warner artists.