Distortion Prediction for Video Quality Optimization over Packet Switched Networks