Routine for writing messages to transcode queue