VLC on AppleTV is the cheapest way of doing it — but the best way, in my opinion, is to buy a Synology as your NAS. They have an AppleTV app which can be used for browsing your NAS library — and also iTunes server support if you want to go that route.