Short-form video ads follow a rhythm. Six or seven cuts, each held for a beat, in an order that works. If you already know a particular reel performs, the useful thing isn't copying the footage, it's keeping the structure and swapping what's in it.
So the workflow downloads the reel, detects every cut, pulls one frame per scene, has a model describe what each shot is doing, generates a new image for each scene anchored to a different product, animates each one, and reassembles them in the original order at the original durations.
Scroll it sideways. Three of those loops are retry paths, one per slow external service, which is the whole reason it finishes rather than timing out.