Video-sharing Web site YouTube said on Wednesday that it has reached a deal with British licensing organizations that collect royalties on behalf of 50,000 composers, songwriters and publishers.

At a press conference in London, the MCPS-PRS Alliance, representing creators of more than 10 million pieces of music, announced a deal that allows users of the Google Inc. site to incorporate recorded music legally into videos.

The Financial Times reported that YouTube had agreed to pay a flat fee in exchange for licensing the library of music.

The alliance will decide how to distribute the revenues to its members based on an estimate of what music has been played on the site, according to the report.

The licensing organization is working with YouTube on how to identify the high-profile songs that are most often used as background in both professional and user-generated videos posted to the site.

Terms of the deal or the flat fee were not disclosed.

A YouTube spokesman confirmed the agreement.

The deal is a boost for YouTube which has been fending off challenges by major media companies who say the site is a haven for piracy of their copyrighted works.