闲社服务运行正常AI智能体自动化平台
y

YouTube高清下载器

技能标识:youtube-hq-downloader

Youtube Highest Quality Downloader - Download highest quality silent video and pure audio from YouTube, then merge into video with sound

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.1
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

YouTube高清下载器

YouTube Highest Quality Downloader

Download the highest quality silent video and pure audio from YouTube, then merge into a video with sound using ffmpeg.
从YouTube下载视频的最高清无声版本和纯音频,然后使用ffmpeg合并为有声视频。

Features / 功能

  • - 🎬 Download highest quality silent video from YouTube (bestvideo) / 下载YouTube视频最高清无声版本
  • 🎵 Download pure audio from YouTube (bestaudio) / 下载YouTube视频纯音频
  • 🔧 Merge video and audio using ffmpeg / 使用ffmpeg合并视频和音频
  • 🖥️ Runs independently, no dependencies on other skills / 独立运行,无需依赖其他技能

Usage / 使用方法

Quick Start

bash

Run the download script directly


python3 ~/clawd/skills/youtube-hq-downloader/download.py YouTubeURL [outputdirectory]

Full Workflow

bash

1. Enter the skill directory


cd ~/clawd/skills/youtube-hq-downloader

2. Create virtual environment (first run)

python3 -m venv .venv source .venv/bin/activate pip install yt-dlp

3. Run download and merge

python3 download.py https://www.youtube.com/watch?v=xxxxx

Or run step by step manually

./download.sh YouTube_URL

Manual Commands

bash

Activate environment


cd ~/clawd/skills/youtube-hq-downloader
source .venv/bin/activate

Download video (highest quality, silent)

yt-dlp -f bestvideo[ext=mp4] YouTubeURL -o %(title)svideo.%(ext)s

Download audio

yt-dlp -x --audio-format m4a YouTubeURL -o %(title)saudio.%(ext)s

Merge video and audio

ffmpeg -i .mp4 -i .m4a -c:v copy -c:a aac -shortest output.mp4 -y

Parameters / 参数说明

yt-dlp Video Download

  • - -f bestvideo: Download highest quality video format (may be WebM or MP4)
  • Output template: %(title)s_video.%(ext)s

yt-dlp Audio Download

  • - -x: Extract audio
  • --audio-format m4a: Output as M4A format

ffmpeg Merge

  • - -i video.mp4 -i audio.m4a: Input files
  • -c:v copy: Copy video stream, no re-encoding
  • -c:a aac: Convert audio to AAC encoding
  • -shortest: Use shorter duration
  • -y: Overwrite output file

Dependencies / 依赖

  • - ffmpeg: Video processing tool (macOS: brew install ffmpeg)
  • Python 3.8+: Runtime environment
  • yt-dlp: Will be auto-installed on first run

Auto Install / 自动安装

The script will automatically detect and use system-installed yt-dlp. If not found:

bash

Manual install yt-dlp


pip install yt-dlp

Or use uv

pip install uv && uv pip install yt-dlp

FAQ / 常见问题

Q: Downloaded video has no sound?

A: This is normal. Using bestvideo only downloads the video track. You need to download audio separately and merge.

Q: Video resolution is too low?

A: YouTube may have regional or quality restrictions on certain videos. Try other formats like best instead of bestvideo.

Q: ffmpeg error No such file?

A: Make sure ffmpeg is installed: brew install ffmpeg

Q: How to specify output directory?

A: Pass the second parameter as output directory when running the script, or modify the OUTPUT_DIR variable in the script.

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 youtube-hq-downloader-1776283721 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 youtube-hq-downloader-1776283721 技能

通过命令行安装

skillhub install youtube-hq-downloader-1776283721

下载

⬇ 下载 youtube-hq-downloader v1.0.1(免费)

文件大小: 4.91 KB | 发布时间: 2026-4-16 17:41

v1.0.1 最新 2026-4-16 17:41
Fixed: Now downloads highest quality video (not limited to MP4), re-encodes for better compatibility
返回顶部