Configuration of encoder, null sink and tunneling between ports