YouTube Guide Command
Theyoutube-guide command combines the functionality of process-youtube and generate-guide into a single command. It downloads a YouTube video, processes it, and generates a step-by-step guide, all in one operation.
Usage
Arguments
| Argument | Description |
|---|---|
URL | YouTube video URL |
Options
| Option | Description | Default |
|---|---|---|
--output-dir TEXT | Output directory for guides | guides/ |
--model TEXT | Model to use for guide generation | From config |
--temperature FLOAT | Temperature for generation | 0.2 |
--batch-size INTEGER | Number of frames to process in each batch | From config |
--max-concurrent INTEGER | Maximum number of concurrent batches | From config |
--frame-interval INTEGER | Interval between frame extractions in seconds | 30 |
--user-directive TEXT | User directive to customize guide generation | None |
--skip-cache | Skip cache and force regeneration | False |
--quality TEXT | Video quality to download (best, 1080p, 720p, etc.) | best |
--format TEXT | Output format (json, markdown, html) | json |
--help | Show help message and exit | - |
Examples
Generate a guide from a YouTube video
Generate a guide with custom directive
Generate a guide with specific model and format
Generate a guide with custom frame interval
Output
The command creates a complete directory structure with both the processed video data and the generated guide:Guide Format
The generated guide has the following structure:Processing Pipeline
Theyoutube-guide command performs the following steps:
- Validates the YouTube URL
- Downloads the video using yt-dlp
- Extracts frames at the specified interval
- Analyzes the frames using AI
- Generates a step-by-step guide based on the analysis
- Saves the guide in the specified format
Customizing Guide Generation
You can customize the guide generation process using the--user-directive option. This allows you to specify what aspects of the video to focus on or what style to use for the guide.
Examples of user directives:
- “Focus on technical details and tools used”
- “Emphasize beginner-friendly explanations”
- “Highlight safety considerations”
- “Include more detailed steps for complex parts”