DVT Encoding Server Code