BBC Two has been named terrestrial channel of the year at the Media Guardian Edinburgh International Television Festival.

The channel's success was announced on Friday at the Channel of the Year Awards, now in their 11th year.

BBC Two has had success over the past year with shows including the award-winning comedy Rev and The Great British Bake Off.

Digital channel of the year went to BBC Four.

Media playback is unsupported on your device Media caption Benedict Cumberbatch speaks about the success of Sherlock in 2011

For the second year in a row, BBC One's Sherlock won the award for the best terrestrial show.

Sherlock, which stars Benedict Cumberbatch as Holmes and Martin Freeman and Dr Watson, also picked up the Network And Ones To Watch Programme Choice prize.

The award-winning US hit series Mad Men was named digital programme of the year.

Set in the 1960s, the drama about one of New York's prestigious advertising agencies is broadcast on Sky Atlantic.

The Edinburgh International Television Festival was established in 1976 and is attended by more than 2,000 delegates.