# video/

YouTubeBilibiliXiaoyuzhou

## YouTube (yt-dlp)

### video

```bash
yt-dlp --dump-json "URL"
```

###

```bash
# (video)
yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --skip-download -o "/tmp/%(id)s" "URL"

# .vtt
cat /tmp/VIDEO_ID.*.vtt
```

### comments

```bash
# commentsbest-effort
yt-dlp --write-comments --skip-download --write-info-json \
  --extractor-args "youtube:max_comments=20" \
  -o "/tmp/%(id)s" "URL"
# comments .info.json comments
```

### searchvideo

```bash
yt-dlp --dump-json "ytsearch5:query"
```

> ****: 
> **comments**: `--write-comments` YouTube Data APIcomments

## Bilibili / Bilibili (yt-dlp + bili-cli)

### video (yt-dlp)

```bash
yt-dlp --dump-json "https://www.bilibili.com/video/BVxxx"
```

### (yt-dlp)

```bash
yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --convert-subs vtt --skip-download -o "/tmp/%(id)s" "URL"
```

### search// (bili-cli)

```bash
# searchvideo
bili search "query" --type video -n 5

# video
bili hot -n 10

bili rank -n 10
```

> **412 **: IP Cookie`--cookies-from-browser chrome` `--cookies /path/to/cookies.txt` IP 
> **install bili-cli**: `pipx install bilibili-cli` `bili login` 

## Xiaoyuzhou / Xiaoyuzhou Podcast

###

```bash
# Markdown /tmp/
~/.agent-search/tools/xiaoyuzhou/transcribe.sh "https://www.xiaoyuzhoufm.com/episode/EPISODE_ID"
```

###

1. **ffmpeg**: `brew install ffmpeg`
2. **Groq API Key** (): https://console.groq.com/keys
3. **configure Key**: `agent-search configure groq-key YOUR_KEY`
4. **Run**: `agent-search install --env=auto` install

### status

```bash
agent-search doctor
```

> Markdown `/tmp/`

## Douyinvideo

```bash
# videoInfo
mcporter call 'douyin.parse_douyin_video_info(share_link: "https://v.douyin.com/xxx/")'

# link
mcporter call 'douyin.get_douyin_download_link(share_link: "https://v.douyin.com/xxx/")'
```

> [social.md](social.md#Douyin--douyin)

##

| | |
|-----|---------|
| YouTube | yt-dlp |
| Bilibili | yt-dlp |
| | Xiaoyuzhou transcribe.sh |
| Douyinvideo | douyin MCP |
