Add content-length gessing with transcoding and remove stderr when transcoding