Replacement Motor

That looks like you found the right hardware. They are magnetic encoders and the 12 counts per revolution on both of those look good.