Building and using directshow graphs for video recording