Resistive losses induced by the presence of trapped magnetic flux in niobium superconducting films have been studied using 1.5 GHz microwaves. They are measured to span a very broad spectrum depending on the film-substrate interface and on the gas used in the sputtering discharge. An interpretation in terms of pinning by noble gas clusters is considered