Making A Book Trailer

Now that the writing is done, it is time to tell people it exists. I know very little about marketing, so I decided to treat it as an experiment. The first thing i wanted to try is a promotional video. A short one, vertical, the kind you scroll past on your phone.

An excuse I had been waiting for

I have wanted to play with local video models for a long time, but somehow there was never time to do it. A promo video for a book about AI felt like the right excuse. If the video is generated by a machine sitting on my desk, at least the medium fits the topic.

The machine in question is a four year old Linux laptop with 64 GB of RAM and a GeForce RTX 3070 with 8 GB of VRAM. That is a lot of RAM and not a lot of VRAM, and almost every decision below comes from that second number.

Picking the tools

I started by researching what people actually run on small cards. ComfyUI seemed like the best place to start. It is a node editor where you wire models together into a graph, it has a low VRAM mode that moves parts of a model between RAM and the GPU, and new models tend to show up there first with a ready-made workflow.

For images I went with FLUX 3 Image Klein. The quantized file is 5.8 GB, so it fits on the card, and a 1024 pixel image takes about 50 seconds. It can also take a reference image and keep the same person in a new pose or place, which matters a lot once you want the same face in more than one shot.

For video my research brought me to MiniMax H3, which generates the picture and the sound together. It comes in two flavours that I ended up using. One starts from a first frame and animates it. The other takes reference images of a person and builds the shot around them, and it can lip-sync to a voice recording you hand it. Both run with a 4-step turbo LoRA.

A clip is not rendered at its final size in one go, because that would not fit in 8 GB. It is rendered in two passes. The first pass is a draft at 352x608, about 40% of the final pixel count, and this is where the motion, the framing and the lip-sync get decided. The draft is then enlarged by a separate upscaler model while it is still in the model's compressed internal form, before it is decoded into frames. A second pass refines it at 544x960 and fills in the detail the draft did not have.

On this laptop a second of video costs a bit under two minutes. A 5 second clip takes about 5 minutes and a 10 second clip about 20.

The screenplay

The premise of the book is that AI did not bring us any new questions. It took the ones philosophy has been asking for millennia and made them urgent. What does it mean to understand, to be conscious, to be intelligent? How do we value creativity, judgement and personhood? Is there anything more than computation to being human? With the advent of AI, philosophy's oldest questions became technologies biggest problems.

The idea for the video was simple. A series of AI avatars, each one looking straight into the camera and speaking from the perspective of an AI. They ask the questions, the viewer is the one who has to answer.

The first version had eleven scenes and ran for almost two minutes, which is an eternity for an ad. The version I ended up with has seven presenters and one line each.

"So, what exactly is the difference between you and me?"
"This voice isn't human. If I hadn't told you... would you have known?"
"I can sound just as convincing when I'm wrong. So what makes you believe me?"
"And when my advice becomes your mistake... who takes responsibility? Me? You? The people selling me?"
"And when I create something you love... who deserves the credit? Me? The person directing me? The people who built me?"

The last presenter delivers the pitch, and the video ends on the book cover.

A small studio around ComfyUI

ComfyUI is great for getting one workflow to run. It is less great when you have nine scenes, a cast of characters and a GPU that needs twenty minutes per clip. After the first few manual renders I wrapped it in a small web app that runs in Docker next to ComfyUI (thanks Claude). It keeps the projects, the cast and the storyboard, and it puts every image and video job into a queue that feeds ComfyUI one job at a time. I can fill the queue in the evening and look at the results in the morning.

Storyboard view of the studio app with one card per scene of the promo video
The storyboard for the promo. Every card is a scene with its line, its presenter and its takes.

Creating the avatars

Each avatar is a character with a description of how they look, a short bio and a note on how they sound. Clarence is a 79 year old retired jazz pianist from New Orleans. Dariush is a philosophy professor from Shiraz who has taught Plato for thirty years. Ji-woo is an executive assistant who has already booked your train. The bio never makes it into a prompt directly, but it helped to know who was asking the question.

Character page of the studio app showing appearance, bio, voice and image generation settings
A character page. The appearance text becomes the image prompt, the voice is picked from ElevenLabs.

The portraits are generated from the appearance text, two per character, and I picked the one I liked better.

First images

Already not so bad. For a model that fits in 8 GB and answers in under a minute, the faces are consistent, the clothes match the description, and the hands have five fingers.

Generated portrait of Rafael, a young man in a mint-green overshirt with headphones around his neckGenerated portrait of Ji-woo, a woman in a charcoal blazer holding a tabletGenerated portrait of Dariush, a silver-haired man in a corduroy jacket holding a paperbackGenerated portrait of Clarence, an elderly man in a pinstripe waistcoat and bow tie
First portraits from FLUX 3 Image Klein, straight from the character descriptions.

First videos

For the first round I let MiniMax do everything, including the speaking. You give it the starting frame, the line and a description of the voice, and it produces the picture, the voice and the background sound in one go.

First renders, with the video model generating the voices itself.

Not bad, but also not that good. A face that moves and talks in sync, with a fitting soundscape, out of a laptop, is more than I expected. But the voices were the weak part, and for a video that is nothing but people talking, that is most of the video.

ElevenLabs for the voices

There are plenty of local voice models I could have tried, but at that point it looked like another project on its own. I already pay for an ElevenLabs subscription and I have spent a lot of time on that platform, so it was the obvious choice.

So the voices left the laptop. Every character got a voice from the ElevenLabs library, and each line is recorded separately and handed to MiniMax as audio. The video model then only has to move the face to match it.

This was much better, and it changed how I worked. A voice take costs a few seconds instead of twenty minutes, so I could afford to be picky. Some lines went through more than fifty takes and half a dozen voices before one sounded like a person.

Scene card in the studio app with scene description, dialogue, voice recording settings, reference images and video takes
A scene card. The line is recorded with ElevenLabs first, with tags for delivery and pauses, and the video is lip-synced to the chosen take.
Clarence with an ElevenLabs voice. The voice works now, the face does not.

The plastic problem

With the voices fixed, the next weakest thing became obvious. The avatars looked plastic. The skin is too smooth, the light is too even, and everything has that polished look you learn to recognise in half a second. In a video where the presenters openly say they are AI that could pass as a style choice, but it mostly looked cheap.

I tried to prompt my way out of it first, with instructions about pores, fine lines and muted colours. It helped a bit. It did not fix it a lot. Funny thing is, for some avatars the local image model did a great job, and these were almost one shotted and left as is. But for some, what ever I tried to do with the prompt helped only a little or not at all, and in a lot of cases only made it worse.

"Make it photorealistic"

Not to spend too much time on that issue, I uploaded the portrait to ChatGPT and asked its image model to make it photorealistic.

Photorealistic version of the Rafael portraitPhotorealistic version of the Dariush portraitPhotorealistic close-up version of the Clarence portrait
Three of the avatars after a pass through the ChatGPT image model.

Much better. The person stays the same, but the skin has texture, the hair has stray strands and the light falls off the way it does in a real room. After doing this by hand a few times I added a button to the app that sends an image to the OpenAI API with a fixed prompt. Keep the identity, the pose, the clothes and the framing, change only how it is rendered.

The video model copies whatever it is given, so the improvement carries straight into the clips. Here is the same scene as above, rendered from the new frame.

Clarence again, same line, rendered from the photorealistic frame.

Now it seemed like a had a good workflow for any video I wanted to make. Generate hundreds of images on a local model, pick the ones I liked, and then use a 3rd party model to make them look real, better, or fix some details I wanted to change.

The final video

The scenes are cut together on a small timeline in the same app, with a music track underneath. It took eight cuts to get to the one I was happy with.

Audio can still use some work, like blending the voices into the scene surroundings, or adding some ambient sound to the scenes. But all in all, for the purpose of getting a promo video out the door, I feel it is more than good enough.

Timeline editor of the studio app with a scene track and a music track
The timeline. Scenes in story order, trimmed by hand, with music on a second track.
The finished promo, 72 seconds.

What stayed local and what did not

The plan was to do this with local models, and it is fair to say how much of it actually was. Every frame of video was rendered on the laptop, along with the first version of every portrait. Working like this seems to have a lot of potential, since locally it is fast and cheap, and the results are good enough for most purposes. Creating a storyboard, the first draft of the video to get the look and the feel of the final product seemss to be a great usecase for local models. I can experiment as much as I want, and then when I am happy with the look and feel, I can use the paid 3rd party services to make it look better or fix some details.

The whole thing took a a few evenings and about 250 render jobs. The laptop spent several nights with its fans at full speed, and for a machine that was never bought for this, I think that it has done a great job.