Transcode queue logic and tests.