{"id":50925530,"url":"https://github.com/zhao5271/video2ob","last_synced_at":"2026-06-16T22:31:10.542Z","repository":{"id":359264934,"uuid":"1245265810","full_name":"zhao5271/video2ob","owner":"zhao5271","description":"A tool to convert short videos (XHS, Douyin, Bilibili) into structured Obsidian notes with local timestamps and video embedding.","archived":false,"fork":false,"pushed_at":"2026-05-21T04:25:12.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T10:59:11.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhao5271.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T04:15:22.000Z","updated_at":"2026-05-21T04:25:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zhao5271/video2ob","commit_stats":null,"previous_names":["zhao5271/video2ob"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zhao5271/video2ob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fvideo2ob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fvideo2ob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fvideo2ob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fvideo2ob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhao5271","download_url":"https://codeload.github.com/zhao5271/video2ob/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhao5271%2Fvideo2ob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34426738,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-16T22:31:05.590Z","updated_at":"2026-06-16T22:31:10.538Z","avatar_url":"https://github.com/zhao5271.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 短视频转 Obsidian 笔记工具 (video2ob)\n\n该工具可以将 **小红书**、**抖音** 或 **哔哩哔哩 (B站)** 的分享链接转换为带有时间戳、全文转录、本地视频回放以及 YAML 元数据的结构化 Obsidian 笔记。\n\n## 核心特性\n- **多平台支持**：自动识别小红书 (XHS)、抖音 (Douyin) 和 B站 (Bilibili) 链接（支持 b23.tv 短链）。\n- **本地 ASR**：基于 `faster-whisper` (M1 Pro 优化)，保护隐私，无需 ASR API Key。\n- **本地存储**：自动将视频下载至 Obsidian 的 `Assets/Videos` 目录，解决网页无法加载问题，支持 Media Extended 插件秒开。\n- **结构化笔记**：采用 `gen-notes` 风格，自动提炼大纲、分段，并生成摘要和知识小结表。\n\n## 快速开始\n\n### 1. 环境准备与安装\n确保已安装 `ffmpeg` 和 `yt-dlp` (可以通过 `brew install ffmpeg yt-dlp` 安装)。\n\n```bash\ngit clone https://github.com/zhao5271/video2ob.git\ncd video2ob\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\nplaywright install chromium\n```\n\n### 2. 配置说明\n复制 `.env.example` 为 `.env` 并填入必要信息：\n- `HF_TOKEN`：Hugging Face 的 Token (用于下载 Whisper 模型)。\n- `OBSIDIAN_VAULT_PATH`：您的 Obsidian 库绝对路径。\n\n### 3. 设置别名 (Fish Shell 推荐)\n```fish\nalias v2ob='/Users/zhang/AI_Projects/xhs2ob/venv/bin/python /Users/zhang/AI_Projects/xhs2ob/video2ob.py'\nfuncsave v2ob\n```\n之后只需运行：`v2ob \"URL\"` 即可。\n\n## Obsidian 建议配套插件\n- **Media Extended**：用于支持本地视频的时间戳跳转。\n- **Smart Connections / Copilot**：结合本工具生成的带元数据的 MD 文件，搭建个人 AI 知识库。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhao5271%2Fvideo2ob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhao5271%2Fvideo2ob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhao5271%2Fvideo2ob/lists"}