this might be helpful with the gem output matter http://www.hdk-berlin.de/~rasca/xvidcap/ -- X D V . O R 6