Skip to content

Generate markdown notes for YT videos with metadata and transcripts for PKM

Notifications You must be signed in to change notification settings

Justmalhar/obsidian-yt-transcripts

Repository files navigation

Obsidian YouTube Transcript Plugin

This plugin allows you to fetch and save YouTube video transcripts directly in your Obsidian vault. It creates well-structured notes containing the video transcript, metadata, and thumbnail for easy reference and searching.

Plugin Demo

Features

  • 🎥 Fetch transcripts from any YouTube video
  • 📝 Create structured notes with video metadata
  • 🖼️ Include video thumbnails
  • 🏷️ Automatic tagging for organization
  • 📂 Configurable save location
  • 🔍 Compatible with Dataview for powerful querying

Installation

  1. Open Obsidian Settings
  2. Go to Community Plugins and disable Safe Mode
  3. Click Browse and search for "YouTube Transcript"
  4. Install and enable the plugin

Usage

  1. Use the command palette (Ctrl/Cmd + P) and search for "Fetch YouTube Transcript"
  2. Paste a YouTube URL
  3. The plugin will make a API call to fetch the transcript and create a new note with the transcript and metadata.

Output Format

Each transcript note includes:

  • Video title and description
  • Channel information
  • Publication date
  • Duration
  • Thumbnail
  • Full transcript
  • Sections for key points and notes

Output Example

Dataview Integration

The plugin works great with the Dataview plugin. Here's an example query to create a table of all your transcripts:

TABLE WITHOUT ID
  choice(
    thumbnail, 
    "[![](" + thumbnail + "?raw=true)](" + url + ")", 
    ""
  ) AS "Thumbnail",
  link(file.path, file.name) AS "File",
  title AS "Title",
  url AS "URL",
  duration AS "Duration",
  channel AS "Channel",
  date AS "Video Date"
FROM "YouTube Transcripts"
WHERE contains(tags, "youtube-transcript")

This creates a beautiful overview of all your transcribed videos:

Dataview Example

Settings

  • Transcript Note Folder: Choose where to save transcript notes (default: "YouTube Transcripts")

Metadata Format

Each note includes YAML frontmatter with:

---
title: Video Title
description: Video Description
created: Creation Date
video-id: YouTube Video ID
url: Video URL
duration: Video Duration
channel: Channel Name
date: Publication Date
thumbnail: Thumbnail URL
tags:
  - youtube-transcript
  - video
---

Support

If you encounter any issues or have feature requests:

  1. Check the GitHub Issues
  2. Create a new issue with details about your problem

Credits

  • Uses the YouTube Transcript API (API Server Coming Soon)
  • Built for Obsidian
  • Inspired by the need for better video note-taking

License

MIT License - see LICENSE file for details

About

Generate markdown notes for YT videos with metadata and transcripts for PKM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published