Text this: Error Resilient Video Coding using Cross-Layer Optimization Approach