일단 가속 비디오 다운로드
작성자 / 워크플로우 디자인: AI落地第四声. 이 작성자 정보는 표시 및 출처 식별을 위한 것이며, 추가적인 권한 제한을 추가하지 않습니다.
이것은 비디오 및 오디오 다운로드를 위한 확인 우선 워크플로우입니다. 사용자는 링크를 AI에 전달하기만 하면, AI가 먼저 yt-dlp와 ffmpeg 환경을 확인하고, 사용 가능한 형식을 나열하며, 실용적인 선택을 설명한 후, 화질, 저장 디렉토리 및 파일명을 확인합니다. 사용자가 확인한 후에만 AI가 다운로드를 실행합니다.
핵심 가치: 링크를 받자마자 바로 다운로드하는 것을 피하여, 잘못된 해상도, 잘못된 컨테이너, 파일명 혼란, HDR/코덱 비호환성, 출력 위치 불명확 등의 문제를 줄입니다. 기본적으로 YouTube, YouTube Shorts, Vimeo, TikTok, Instagram, X/Twitter, Facebook, Twitch, Bilibili, Dailymotion, SoundCloud, Bandcamp, Reddit 및 기타 yt-dlp가 지원하는 소스에 적용됩니다. 전체 범위는 yt-dlp 공식 사이트 목록을 기준으로 합니다. 재생 목록은 사용자가 명시적으로 요청하는 경우에만 처리됩니다.
빠른 시작: 비디오 링크를 AI에 보내고 "최고 화질", "MP4 호환", "작은 파일", "오디오만" 또는 AI 추천을 원한다고 말하세요. 기본적으로 최고 사용 가능 화질을 권장하며, 공간 절약을 위해 720p로 능동적으로 낮추지 않습니다. 다운로드 후 자막 번역으로 이어질 경우, AI는 사용자가 지정한 위치에 한글 비디오 제목과 비디오 ID로 명명된 작은 프로젝트 폴더를 생성합니다. 비디오, 오디오 및 자막은 모두 여기에 저장됩니다. yt-dlp는 구문 분석 및 다운로드를 담당하고, ffmpeg는 분리된 비디오와 오디오 병합, 컨테이너 변환, 오디오 추출, 그리고 필요 시 자막, 표지 및 메타데이터 처리를 담당합니다.
효과 예시:
사용자: 이 YouTube 비디오를 다운로드해 주세요. 가능한 한 선명하게요.
AI: 먼저 사용 가능한 형식을 나열하고, 몇 가지 선택지를 제공하겠습니다: 최고 화질, MP4 호환, 작은 파일, 오디오 전용. 화질, 저장 경로 및 파일명을 확인한 후 다운로드하겠습니다.
아래 "English Execution Contract"부터는 AI 실행자가 읽을 공식 규칙입니다. 위의 중국어 설명은 SkillHub, ClawHub, skills.sh 및 사용자 이해를 위한 것이며, 실행 계약을 대체하지 않습니다.
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.