The only way to convert tvs to avi, i.e. to export TeamViewer sessions to AVI format, is to use the default 'Convert' function found in the program. Unfortunately, no 3rd party app seems to be capable of this type of tvs to avi conversion.
Open TVS file Open AVI file