HBO is replacing Terence Winter as the showrunner on its series, “Vinyl,” Page Six can reveal.

Scott Z. Burns, the screenwriter behind “Contagion” and “The Bourne Ultimatum” will take over as executive producer and showrunner. Max Borenstein will also be added as an executive producer.

The rock ‘n’ roll show — created by Martin Scorsese and Mick Jagger with Winter and Rich Cohen — was renewed for a second season in February shortly after its debut. But the series premiered to less than robust ratings, with 764,000 viewers.

An HBO spokesperson told Page Six in a statement: “As we head into the second season of Vinyl, we have decided it is an appropriate time to make a change in the creative direction of the show. We have enjoyed a longtime partnership with Terry Winter at HBO on projects from ‘The Sopranos’ to ‘Boardwalk Empire’ to ‘Vinyl,’ and we look forward to our next collaboration with him. We are pleased to welcome Scott Z. Burns, executive producer and showrunner, and Max Borenstein, executive producer, as the new team helming the show.”