This thread on eurobricks.com may be of interest. It is a gearing animation & ratio calculator using LDraw files as input. I just spotted it this morning. It is currently in beta release but it looks to be a useful tool.
Regards,
David
Regards,
David