William Hurt is set to play musician Gregg Allman in upcoming biopic Midnight Rider.

The actor will take the lead role in Randall Miller's film, according to The Hollywood Reporter.

Tyson Ritter, the lead singer-songwriter of band The All-American Rejects, is already on board to play Allman in his younger years, while Wyatt Russell will play brother Duane Allman.

The film focuses on Gregg's early career with the The Allman Brothers Band, and his realisation at 64 that he needed to get clean if he wanted to live.

The project, an adaptation of the Gregg's memoir My Cross to Bear, was written by Randall Miller and Jody Savin.

Savin said of Hurt's casting: "William Hurt actually helped start Randy's career years ago. He made an anonymous monetary donation to Randy's AFI thesis film. And when his identity was revealed, he even agreed to do the voiceover on the film."

Hurt was last seen in the Bonnie and Clyde TV miniseries.

Midnight Rider will enter production in February.