Scooby-Doo! Pirates Ahoy! (2006 Video)
DVD release reviewed + footage used
Directly lifts several elements from the movie such as the opening title appearing in candle light, a ship with tattered sails crewed by skeletal pirates and the ending scene featuring Scooby sailing the ship into the horizon.
Shaggy said that he's "king of the world"