The output torque of engine, propeller and other power sources in the operation process contains multi harmonic fluctuation components, which constitutes the main source of torsional vibration of shafting, and stimulate other vibration coupled with torsional vibration. This paper introduces a new method to solve torsional vibration of shafting system based on the line spectrum active control. It mainly includes: multi-body dynamic analysis model to reveal the coupling characteristics of torsional vibration and vibration in other directions; Aiming at the characteristic that the multi-harmonic vibration active control system for complex shafting systems may be equipped with several actuators, a new cross-coupled multi-channel line spectrum active control algorithm is proposed; A new type of torque actuator, the internal electromagnetic structure contains a relatively rotating stator and rotor. They are connected with springs. The whole can rotate with the shafting. The dynamic torque is issued according to the command of the active control system, in order to suppress the torque fluctuation due to the power sources, and greatly reduce the torsional vibration of the shafting.