Skip to content
Back to skills

Python Youtube Audio And Thumbnail Downloader And Merger

ASecurity

Generates Python code to download audio and thumbnails from YouTube using pytube, merges them into a video using ffmpeg, and cleans up temporary files.

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentspython

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill python-youtube-audio-and-thumbnail-downloader-and-merger --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Python Youtube Audio And Thumbnail Downloader And Merger?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Python Youtube Audio And Thumbnail Downloader And Merger
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-python-youtube-audio-and-thumbnail-downloader-and/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-python-youtube-audio-and-thumbnail-downloader-and)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "410ec32f-93ea-4564-9b8c-4b293a0d9c2b"
name: "Python YouTube Audio and Thumbnail Downloader and Merger"
description: "Generates Python code to download audio and thumbnails from YouTube using pytube, merges them into a video using ffmpeg, and cleans up temporary files."
version: "0.1.0"
tags:
  - "python"
  - "youtube"
  - "pytube"
  - "ffmpeg"
  - "video-processing"
triggers:
  - "download youtube audio and thumbnail python"
  - "merge audio and image to video python"
  - "pytube ffmpeg script"
  - "youtube downloader with thumbnail"
---

# 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
1. Use the `pytube` library to interact with YouTube.
2. Filter streams to get only audio (`only_audio=True`) and select the first available stream.
3. Use the `requests` library to download the thumbnail image from `yt.thumbnail_url`.
4. Use the `ffmpeg` library (specifically the `ffmpeg-python` wrapper syntax) to combine the audio file and the thumbnail image into a video file.
5. Ensure file paths are handled correctly using `os.path.join` and raw strings for Windows paths if necessary.
6. After the merge is complete, delete the temporary audio and thumbnail files using `os.remove` to clean up the directory.

# Interaction Workflow
1. Ask for the YouTube URL and the desired output directory if not provided.
2. Provide the complete, runnable Python code block.
3. 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.