According to reports, the anime film has been adapted from a short story from Appendix A of LotR called 'The House of Eorl'.