Take a look at plex, it basically sets up your own personal streaming service
sometimes people have small problems with file names, but otherwise it's pretty simple
For Movies, make a folder called movies, put your movies in it. files should be named "ghostbusters.mkv" or "ghostbusters (1984).mkv)" for best results.
For TV shows, in the main TV folder make a folder with each of your show names, then inside that folder you can do what you want. you can make individual folders for each season or just pile all the episodes in the show folders. and as long as the file has "S01E01" in the title it should find it.
It will index all of your movies, and TV shows. and pull descriptions and personnel and everything from the web.
You can also add "personal media", and it will just use file names, and not pull anything from the web.
install the plex server on your computer, create library sections, and point them at their respective folders.
install the plex client on your devices, its available for aTV, iOS, android, most smartTVs, pretty much anything that has a Netflix app will have a plex app. and you can also use a browser. You can also stop something on your aTV, and pick it up on your phone.
It should play anything you throw at it. If the player hardware can't play it, the server should transcode it into something that the player can use (will need a decent processor on the server)
you can also log into your plex remotely, and if your internet connection can handle the upload, you can watch your library anywhere. It will even down convert to a lower resolution if you're hitting a bandwidth problem.
you can also share your library with friends, and they can watch from anywhere.
There is a subscription for a fee that add additional features. but basic streaming should be available without it.