I've got a chinese series on DVD that I would like to add hard-subtitles for a friend so he can watch it.

This is what I think the process is:
1. convert DVD to avi
2. code the subtitles to the avi

How can I do step 2? is there applications that can I use to do that?