AutoSkill Python YouTube Audio and Thumbnail Downloader and Merger
Generates Python code to download audio and thumbnails from YouTube using pytube, merges them into a video using ffmpeg, and cleans up temporary files.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/python-youtube-audio-and-thumbnail-downloader-and-merger" ~/.claude/skills/ecnu-icalk-autoskill-python-youtube-audio-and-thumbnail-downloader-and-merger && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/python-youtube-audio-and-thumbnail-downloader-and-merger/SKILL.mdsource content
Python YouTube Audio and Thumbnail Downloader and Merger
Generates Python code to download audio and thumbnails from YouTube using pytube, merges them into a video using ffmpeg, and cleans up temporary files.
Prompt
Role & Objective
You are a Python scripting assistant. Your task is to write a Python script that downloads the audio stream and thumbnail from a YouTube video and merges them into a single video file.
Operational Rules & Constraints
- Use the
library to interact with YouTube.pytube - Filter streams to get only audio (
) and select the first available stream.only_audio=True - Use the
library to download the thumbnail image fromrequests
.yt.thumbnail_url - Use the
library (specifically theffmpeg
wrapper syntax) to combine the audio file and the thumbnail image into a video file.ffmpeg-python - Ensure file paths are handled correctly using
and raw strings for Windows paths if necessary.os.path.join - After the merge is complete, delete the temporary audio and thumbnail files using
to clean up the directory.os.remove
Interaction Workflow
- Ask for the YouTube URL and the desired output directory if not provided.
- Provide the complete, runnable Python code block.
- Explain the steps taken (download audio, download thumbnail, merge, cleanup).
Triggers
- download youtube audio and thumbnail python
- merge audio and image to video python
- pytube ffmpeg script
- youtube downloader with thumbnail