Pathwise AcademyOnline & In-Person AI ClassesIdea to BuildCreators Club · Ages 10–17Marketing with AI · AdultsCorporate WorkshopsHackathons for SchoolsSingaporeHong Kong
Pathwise AcademyAI classes for kids & adults
Find a class →Log in
← All free guides
Creating contentIntermediate · about 30 minFree · no signup

Extract frames and audio for an AI video review

yt-dlp fetches the file, FFmpeg turns it into something a model can read. One command installs both, and skips the download page where beginners give up.

By Alan Brown

Jump to the prompt ↓

A model can't open a video file. yt-dlp fetches it, FFmpeg turns it into frames or an audio track — the form Claude can actually read. Install both before anything else.

  • 🍺 Mac — one line does both: brew install yt-dlp ffmpeg
  • 🪟 Windows (with winget) — winget install yt-dlp.yt-dlp then winget install Gyan.FFmpeg
  • 📦 yt-dlp — github.com/yt-dlp/yt-dlp. Free and public domain (the Unlicense).
  • 🎛 FFmpeg — ffmpeg.org/download.html. Only worth opening if the install command didn't work for you.
  • ✅ Check it took: run yt-dlp --version and ffmpeg -version. Two version numbers means you're done.

Context & limitations

The FFmpeg download page is where most beginners quit. It drops you on a wall of builds with no obvious "click here", and that's the moment someone decides this isn't for them. Which is why the command is the thing worth sharing and the links are the backup — one line installs both, and you never have to look at that page.

Worth saying once, because the tool won't: yt-dlp doesn't know whose video it is. On your own uploads it's a backup and re-editing tool. On someone else's, most platforms' terms say no — and that's a decision you're making, not one the software made for you.

Do this yourself

I have yt-dlp and ffmpeg installed. I want to ___ First establish my OS/shell, input source and desired output format if I haven't provided them. Give me one command that writes a new output file without overwriting the input. Quote filenames correctly for my shell. Then, underneath, explain each flag in a short line, so I could change it next time without asking you again. If the job genuinely needs two commands, say so rather than cramming it into one. And if what I've asked for won't work — wrong tool for it, or the source won't allow it — tell me that instead of handing me a command that fails.

ffmpeg's flags are why people end up pasting commands they can't adapt. Asking for the line and the explanation in one go is what stops that.

Want to build this with a teacher?

Pathwise Academy runs small, hands-on AI classes in Singapore for ages 10–17 and adults.