Skip to main content
Skip to main content

Drupal AI

Automatic video editor

Write what you want cut out of a video, like every shot with a pizza, and get the clips back from Drupal.

About this video

In this workflow we will use the AI Interpolator OpenAI module in Drupal to take a video and a prompt for what you want to extract from the video, and extract that into one concatenated file or multiple snippet files.

That way you can take a long video and say something like "Extract all the places where he talks about Microsoft" or "Get me all the scenes where there is a person with a flag in their hand" and you get video snippets back.

This is using FFmpeg together with OpenAI Vision and OpenAI Whisper to be able to read the videos. Then it asks for timestamps in the video and uses FFmpeg to extract this and save it back.

In the end we have created a search function for video, both on the audio and the visual part. Neat, isn't it?

The OpenAI cost for a 5 minute video is around 10 cents.

This video is from before the AI Interpolator module became AI Automators, part of the AI module. Module and menu names have changed since, and some steps look different today.

Watch the video

0:00

Transcript

YouTube's automatic captions, lightly corrected. Click a line to jump to that moment in the video.

Chapters

Updated 2 min read

Other ways to consume this

Filed under Workflows Drupal AI
AI modified

Parts of this content were produced by AI.

How was AI used?

The video and the introduction are Marcus's own, first published on workflows-of-ai.com. AI wrote the subtitle, the summary and the video chapters from the transcript, and corrected misheard names in YouTube's automatic captions.