I don’t know why Roku doesn’t include AVI as a known container type, but we can be thankful they do include MKV (as it is a much better container anyway). So I wrote a script for recursively parsing my DLNA stack and making MKV’s for each found AVI.
You can find that over at my GitHub:
Hope that helps you!