It seems as though .avi format is not supported by quicktime(the player on your Iphone). So, you could convert all of those videos to a format supported by your IOS device(mp4,mov,m4v) using VLC and Handbrake but this is very time consuming and less than ideal.