I've got the same problem to produce a mosaic with a still background image and record the result in a file.
I succeeded to do something with a video background and a display on the screen but the #transcode settings doesn't seems to work when I want to save a TS file.