just use boxee
There's instructions on boxee.org to do this sort of thing, however the patchstick version they provide has all this and more - like boxee.
Also be warned that the ATV is very fussy about the usb drive. It's very hit and miss as to whether they work or not.