A news conference into vertical clips

Four vertical clips from a 23-minute news conference, with word-by-word captions and framing that follows the speaker.

Input
A 23-minute NASA news conference
Output
Four captioned vertical clips

Inspect the results

Watch how each clip introduces its own topic, highlights the words as they are spoken, and keeps the speaker in a vertical crop. The original news conference is linked in the source credits.

I got motion sick returning to Earth, not going up0:25
Why unzipping a bag in space turns into a mess0:27
I cut my own hair three times in space0:30
Flying over a baby octopus from the space station0:41

Factory selected the moments from NASA footage and wrote the titles and captions.

  1. Read metadata
  2. Sample framesNeeds Read metadata.
  3. Find cutsNeeds Read metadata.
  4. Speech to textNeeds Read metadata.
  5. Track facesNeeds Sample frames.
  6. Pick momentsNeeds Speech to text, Find cuts.
  7. Render clipsNeeds Pick moments, Track faces.
  8. Publish clipsNeeds Render clips.
What each step does
Read metadata
Reads the recording's duration, frame size and tracks.
Speech to text
Transcribes every word with its start and end time.
Sample frames
Takes a frame every second.
Find cuts
Finds the camera cuts.
Track faces
Finds the faces in the frames and follows each one across them.
Pick moments
Gemini watches the video with its transcript and cuts and chooses the clips: each one's span, title, framing, word corrections and filler trims.
Render clips
Renders each chosen clip at 1080×1920 with the social clip template.
Publish clips
Returns playback URLs for the clips.

Source footage

A 23-minute post-flight news conference: one astronaut, a moderator and reporters' questions.

Adapt this pipeline

A hosted run of this example requires an organization with Pipelines and LLM steps enabled.