def video(data_type, stream_id, data, control, timestamp):
    """
    Construct a video message to send video data to the server.
    :param data_type: int the RTMP datatype.
    :param stream_id: int the stream which the message will be sent on (same as the publish StreamID).
    :param data: bytes the raw video data.
    :param control: bytes in hex the control type to send the data as.
    :param timestamp: int the timestamp of the packet.
    """
    msg = {'msg': data_type,
           'stream_id': stream_id,
           'timestamp': timestamp,
           'body': {'control': control, 'data': data}}
    return msg