Skip to main content

Process YouTube Command

The process-youtube command downloads a video from YouTube and processes it, extracting frames and analyzing their content. This is similar to the process-video command but works with YouTube URLs instead of local files.

Usage

Arguments

Options

Examples

Process a YouTube video

Process a YouTube video with custom frame interval

Process a YouTube video with specific quality

Output

The command creates a directory structure in the output directory with the following components:
  • frames/: Directory containing extracted frames as JPEG images
  • metadata.json: Metadata about the video and extraction process
  • analysis.json: Analysis of the extracted frames
  • video.mp4: The downloaded video file

Metadata Format

The metadata.json file contains information about the video and the extraction process:

YouTube URL Formats

The command supports various YouTube URL formats:
  • Standard: https://www.youtube.com/watch?v=VIDEO_ID
  • Short: https://youtu.be/VIDEO_ID
  • With timestamp: https://www.youtube.com/watch?v=VIDEO_ID&t=123s
  • Playlist item: https://www.youtube.com/watch?v=VIDEO_ID&list=PLAYLIST_ID

Next Steps

After processing a YouTube video, you can:
  1. Generate a guide from the processed data
  2. Transcribe the audio from the video
  3. Analyze the content in more detail