Xstream-x264: A Tool for Real-time H.264 Encoding and Streaming with Cross-layer Integration