Work on daemon transcoding and add tests.