Calculate transcoding buffer sizes with alignment