Ein-Klick-Beschleunigung von Video-Downloads
Autor / Workflow-Design: AI落地第四声. Diese Autoreninformation dient der Darstellung und Quellenangabe und fügt keine zusätzlichen Lizenzbeschränkungen hinzu.
Dies ist ein bestätigungsorientierter Workflow für Video- und Audio-Downloads. Der Benutzer übergibt lediglich einen Link an die KI. Die KI prüft dann die yt-dlp- und ffmpeg-Umgebung, listet verfügbare Formate auf, erklärt praktische Auswahlmöglichkeiten und fragt nach Bestätigung für Qualität, Speicherverzeichnis und Dateinamen. Erst nach Bestätigung durch den Benutzer führt die KI den Download aus.
Kernwert: Vermeidung von Sofort-Downloads direkt nach Linkeingabe, Reduzierung von Fehlern wie falscher Auflösung, falschem Container, ungeordneten Dateinamen, HDR-/Codec-Inkompatibilitäten und unklarem Ausgabepfad. Standardmäßig kompatibel mit YouTube, YouTube Shorts, Vimeo, TikTok, Instagram, X/Twitter, Facebook, Twitch, Bilibili, Dailymotion, SoundCloud, Bandcamp, Reddit und anderen von yt-dlp unterstützten Quellen; der vollständige Bereich folgt der offiziellen yt-dlp-Liste unterstützter Seiten. Wiedergabelisten werden nur auf ausdrücklichen Wunsch des Benutzers verarbeitet.
Schnellstart: Senden Sie den Video-Link an die KI und sagen Sie, ob Sie "höchste Qualität", "MP4-Kompatibilität", "kleine Datei", "nur Audio" wünschen oder die KI empfehlen lassen möchten. Standardmäßig wird die höchste verfügbare Qualität empfohlen, nicht eine automatische Reduzierung auf 720p aus Speicherplatzgründen. Wenn der Download später für Untertitel-Übersetzungen verwendet wird, erstellt die KI am angegebenen Speicherort einen kleinen Projektordner, der nach dem chinesischen Videotitel und der Video-ID benannt ist. Video, Audio und Untertitel werden darin abgelegt. yt-dlp übernimmt die Analyse und den Download; ffmpeg kümmert sich um das Zusammenführen von getrenntem Video und Audio, Container-Konvertierung, Audio-Extraktion sowie bei Bedarf die Verarbeitung von Untertiteln, Thumbnails und Metadaten.
Beispielausgabe:
Benutzer: Hilf mir, dieses YouTube-Video herunterzuladen, so klar wie möglich.
KI: Ich liste zunächst die verfügbaren Formate auf und gebe dir dann mehrere Optionen: höchste Qualität, MP4-Kompatibilität, kleinere Datei, nur Audio. Bestätige bitte die Qualität, den Speicherpfad und den Dateinamen, bevor ich herunterlade.
Ab "English Execution Contract" gelten die offiziellen Regeln für den KI-Ausführer; die obige chinesische Erklärung dient nur dem Verständnis in SkillHub, ClawHub, skills.sh und für Benutzer, ersetzt aber nicht den Ausführungsvertrag.
English Execution Contract
Use this skill for reviewed video/audio downloads with yt-dlp. Do not download immediately after the user provides a link. First inspect available formats, summarize practical choices, and ask the user to choose. Before downloading, also confirm the download path and filename. Download only after the user confirms all required choices or explicitly delegates them.
Workflow
- Check tools if not already confirmed:
command -v yt-dlp
command -v ffmpeg
- List available formats:
yt-dlp --no-playlist -F "VIDEO_URL"
Use --no-playlist unless the user explicitly asks for a playlist.
- Summarize the useful choices:
- Best quality (default recommendation): highest available video plus best audio. Prefer H.264 video plus M4A/AAC in
mp4when that preserves the highest available resolution; otherwise explain the container tradeoff. - MP4 compatibility: H.264 video plus M4A/AAC audio, usually
mp4. - Smaller file: 1080p, 720p, or another clear cap.
- Audio only: best audio or M4A compatibility.
- Best quality (default recommendation): highest available video plus best audio. Prefer H.264 video plus M4A/AAC in
Mention format IDs or selectors, resolution, FPS, HDR/SDR, video codec, audio codec, estimated size when visible, and container.
-
Ask the user which quality or format to download. Do not run the download command until they confirm.
-
Confirm the parent download location and create a media project folder.
- Treat every download that may continue to subtitle translation as one media project, not a loose collection of files.
- Use the confirmed location as
PARENT_DIR, then createPROJECT_DIRnamed<localized video title> [<video id>]beneath it. Localize the title to the user's requested language when asked. - Save the video, an explicitly downloaded audio-only file, ASS/SRT outputs, and hidden working artifacts under
PROJECT_DIR. Do not leave related files in the parent directory. - Pass the same
PROJECT_DIRto video translation as both its--outputs-dirand the parent of its hidden.work/directory.
-
Confirm the filename.
- Propose a default filename from the video metadata, normally:
%(upload_date>%Y-%m-%d)s - %(title).200B [%(id)s].%(ext)s
- Ask whether the user wants to update the filename.
- If yes, ask them to send the filename directly. Preserve or add the final extension based on the chosen container.
- Keep
[%(id)s]in the default name to avoid collisions and preserve the source video ID, but remove it if the user requests a cleaner name. - Use the confirmed filename or template as
OUTPUT_NAME. When a localized project title is used, keep the same localized basename for video, audio, and subtitles.
Commands
Use explicit reviewed IDs when possible:
yt-dlp --no-playlist --windows-filenames \
-f "VIDEO_ID+AUDIO_ID" \
--merge-output-format mkv \
-P "OUTPUT_DIR" \
-o "OUTPUT_NAME" \
"VIDEO_URL"
Use best quality after the user delegates selection:
yt-dlp --no-playlist --windows-filenames \
-f "bv*+ba/b" \
--merge-output-format mkv \
-P "OUTPUT_DIR" \
-o "OUTPUT_NAME" \
"VIDEO_URL"
Use MP4 compatibility after confirmation:
yt-dlp --no-playlist --windows-filenames \
-f "bv*[ext=mp4][vcodec^=avc1]+ba[ext=m4a]/b[ext=mp4]/b" \
--merge-output-format mp4 \
-P "OUTPUT_DIR" \
-o "OUTPUT_NAME" \
"VIDEO_URL"
Use audio only after confirmation:
yt-dlp --no-playlist --windows-filenames \
-f "ba" \
-P "OUTPUT_DIR" \
-o "OUTPUT_NAME" \
"VIDEO_URL"
Final Response
After downloading, report the saved path, file size, selected format IDs or selector, confirmed output directory, confirmed filename, and any important caveats such as HDR, MKV playback, subtitles, or audio language.
Remind the user to download only content they have permission to save or use when relevant.