as the inner part of the pipe will be dark you have to use IR camera, in case you want to use conventional camera like web cam, you have to provide light inside and then use thermal imaging techniques. You can also find small size IR cameras in the market. you can cameras here http://www.flir.com/thermography/americas/us/view/?id=56784