<P> Kaya Scodelario was chosen as the female lead out of a shortlist that included Gabriella Wilde, Alexandra Dowling, Jenna Thiam, and Lucy Boynton . Her character, Carina, is an astronomer accused of being a witch . Scodelario confirmed that she was playing "a totally different character" from Elizabeth Swann, and also that she will be Henry's love interest, given in earlier drafts she was envisioned as a love interest of Sparrow . Kevin McNally confirmed his return as Joshamee Gibbs in late January . Shortly after on - location pre-production opened in Australia, Disney issued a casting call to local agents for actors from all ages and experience levels to apply for roles, and as extras in the upcoming film, with casting also open in the US . Adam Brown, Delroy Atkinson, and Danny Kirrane were revealed as cast members shortly before filming . As filming begun, two actors from the previous films were confirmed to return, Martin Klebba as Marty and Stephen Graham as Scrum . Director Joachim Rønning's two children appear in the film as extras . Keith Richards expressed interest in reprising his role as Captain Teague, but was unavailable, leading Depp to invite Paul McCartney into appearing as Jack Sparrow's uncle (also named Jack). </P> <P> Other actors had expressed interest in reprising their roles from the previous films, such as Tia Dalma portrayer Naomie Harris, and Greg Ellis, even if his character Theodore Groves appeared to die in the previous film . Both Lee Arenberg and Mackenzie Crook commented on the possibility of returning as Pintel and Ragetti . In an interview on November 7, 2014, Crook confirmed that he had received a call of availability from Disney for the film, though he later declined in order to focus on his television series Detectorists . He said he had felt "pangs of nostalgia" when the cast and crew filmed without him . Arenberg, who also had a television commitment, to Once Upon a Time, added that he felt like the producers "weren't really trying to court us like they really wanted us ." </P> <P> Directors Joachim Rønning and Espen Sandberg originally stated that shooting would take place in Puerto Rico and New Orleans, and Bruckheimer had previously mentioned that there might be a sequence in Louisiana . However, a spokesman for Australian Arts Minister George Brandis confirmed that the fifth installment was set to shoot exclusively in Australia, after the government agreed to repurpose $20 million of tax incentives, originally intended for the remake of 20,000 Leagues Under the Sea; thus edging out Mexico and South Africa as filming locations . According to Australian film industry sources, on location pre-production started in late September 2014, and its cost was set at around $250 million . Filming took place exclusively in Queensland, Australia, as the largest production to ever shoot in the country . Village Roadshow Studios and the Whitsunday Islands were officially confirmed as filming locations . On January 1, 2015, The Rainbow Gypsy, a 15 - year - old replica of an 1897 Scottish bawley, underwent an extensive refit at the Gold Coast, including a new bowsprit, and reconfigured decks and cabins, for filming as the Dying Gull . Its captain and owner, Kit Woodward, was a rigger on the film . </P> <P> Filming commenced on February 17, 2015 . Ship scenes were filmed in front of a giant outdoor greenscreen in Helensvale, while a film set in the form of a village was built in Maudsland . Because the greenscreens' height blocked the sunlight, containers with inflatable bluescreens mounted on top were added to the set to allow some light to enter . While an initial draft of the script featured six ships, the end product had eleven vessels; to cut costs, most of these were partial constructs later enhanced by computer graphics, with some built atop an hydraulic rig to mimic the movement of seafaring while on land . The camera crew, led by director of photography Paul Cameron, also made extensive use of drones, to capture immersive views at sea without resorting to aerial footage or cranes . </P>

Where did they film pirates of the caribbean 5