The hobbit has said goodbye to The Hobbit.

Martin Freeman, the actor who plays Bilbo Baggins, shot his last scenes for the trilogy on Friday night, wrapping up two and a half years of filming in New Zealand.

Sir Peter Jackson made the announcement on his Facebook page, attracting almost 50,000 likes in just 12 hours.

"We have said goodbye to our elves, humans, wizards and now the hobbit," Sir Peter said.

"These next two movies are going to be pretty great!"

The Hobbit: The Desolation of Smaug is due for release in December this year.

"We now enter our final two weeks of pick-ups, and it's wall to wall dwarves," Sir Peter said.

"These pick-ups have been gruelling and intense, but I'm so happy with what we've been shooting."

On Friday, Sir Peter also said the New Zealand Symphony Orchestra would record the soundtrack for the second instalment of the trilogy.

The trailer for the The Hobbit: The Desolation of Smaug was released last month, causing a stir on social media sites.