encoding format on the client side stream