GitXplorerGitXplorer
m

summarize_yt

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
076135b55d316d174a2d231679bdb10436e255ec

Update summarize_yt.py

mmartintrojer committed 2 months ago
Verified
01da7e64e99cdf01ec73068a0a615dbd4c251eed

Create pylint.yml

mmartintrojer committed 2 months ago
Unverified
e99ec1992b2ad1e7ffc96115d5ccf23096309385

improvements

mmartintrojer committed 2 months ago
Unverified
170cdf703f27ca79b54ebf4569c3ddc6dfbee95f

initial commit

mmartintrojer committed 2 months ago

README

The README file for this repository.

YouTube Video Summarizer

A command-line tool that automatically transcribes and summarizes YouTube videos using yt-dlp, Whisper, and Fabric/LLaMA. This tool is particularly useful for videos without available transcripts or when you need quick summaries of video content.

Features

  • Downloads audio from YouTube videos
  • Transcribes speech to text using Whisper
  • Generates summaries using Fabric/LLaMA models
  • Handles temporary file cleanup automatically

Prerequisites

The following tools need to be installed:

  • yt-dlp - For YouTube video downloading
  • ffmpeg - For audio processing
  • Fabric - For text summarization
  • Whisper - For speech-to-text conversion

Installation

brew install yt-dlp ffmpeg

go install github.com/danielmiessler/fabric@latest

read whisper.cpp/README.md for how to download models

Usage Examples

Basic Usage

# Summarize a single video using llama3.2
python summarize_yt.py -y "https://www.youtube.com/watch?v=dQw

Using a different model

python summarize_yt.py --youtube-url "https://youtu.be/abc123" --model-name "gpt4:latest"

Command Line Arguments

Argument Short Required Description
--youtube-url -y Yes The URL of the YouTube video to process
--model-name -m Yes The Fabric/LLaMA model to use for summarization