I cant tell you if this is what the problem is, but a lot of times cars will idle rough like that when the throttle body and idle air controller are gunked up.
Air controller gets full of carbon and can't being the idle down to take stress off the transmission.
__________________
|