Last month, we reported that actor/singer Billy Boyd, who played Peregrin Took in The Lord of the Rings trilogy, is singing the end credits song for The Hobbit: The Battle of The Five Armies. While the song itself debuted last week, Warner Bros.' WaterTower Music has released an official music video.

This four and a half minute video features plenty of footage from director Peter Jackson's final Hobbit adventure, along with Billy Boyd signing and playing guitar in the recording booth. The actor/musician co-wrote the song with filmmakers Peter Jackson, Fran Walsh and Philippa Boyens.

During an interview with Entertainment Weekly, Billy Boyd had this to say about how they wanted to say goodbye to audiences with this song.

"We had to get the song just right, to send the audience out of the movie theater in the most perfect way we could. But I don't think it was until I was sitting on the long flight down to New Zealand that I started to really think about what the song would be. Luckily all the Middle-earth movies were on the flight so I could remind myself of them as I flew south."

He also spoke about the process of coming up with the song with Fran Walsh and Philippa Boyens.

"After seeing the film, I went to my room and I started to put down some ideas, and along with Fran and Philippa, we started to sculpt the song we thought the movie needed. A lot of ideas took us to dead ends or we found the tone wasn't just right. I think we discovered very quickly this wasn't just a song to end The Battle of The Five Armies - it was a song to say goodbye to Middle-earth."

Billy Boyd also spoke about how working on The Lord of the Rings trilogy was a special time in his life.

"The Lord of the Rings films were such a special time for me in many ways-working with Pete, Fran and Philippa, being in New Zealand, being part of Professor Tolkien's work or even just the incredible friends I made. And being asked to go back to that, to work in that wonderful fantasy world again and to be singing the song that says goodbye to Middle-earth for everyone involved and the fans who took this beautiful journey with us is truly a great, great honor."

Take a look at the music video below for "The Last Goodbye."