Thanks for the advise. I did try to import a fbx motion into unreal and mark all bone’s rotation value in each frame. Then export the result as text file and read it again from another unreal editor.
This is the original motion like
This is my result read from other unreal editor
I can tell i am close to the answer, but there are some axis conversion i could not figure it out