What is the name of this 3d animated film?

The movie begins with a knight riding a dragon and fighting other dragon riders over a red stone(dont remember what happens with the red stone). The knight gets betrayed and starts a rebellion with people he finda from the tavern. They win the rebellion but most of them die. Sorry thats all i can remember.

Justin and the Knights of Valour?