GIF Download & Short Video Synthesis Workflow
Paste the following prompt into your AI chat to install this skill:
Please install @user_2fddd7d0/gif-to-shortvideo according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem
When producing vertical short videos, the tedious part is often the upstream asset pipeline rather than editing itself: find GIFs for a theme, distinguish real animated files from thumbnails, static images, or broken downloads, and then align background, captions, transitions, endings, and output ratios. Doing this by hand spreads work across browsers, file managers, Python scripts, and editors, which makes parameters easy to drift. The skill compresses download, validation, and compositing into two reusable local script paths for vertical content on platforms such as Toutiao, Douyin, and Kuaishou.
How It Works
Download path: the script connects to a local browser through CDP, opens Baidu Image search with user-like navigation, triggers lazy loading, and extracts .gif URLs from rendered page data. It then filters downloads by file size and Pillow frame count to reduce the chance that static images or small files enter the video.
Compositing path: gif_to_video.py reads GIFs from src_dir and renders a 1080x1920, 9:16, 30fps, H.264 video. Each GIF is centered and scaled; short GIFs are looped to the configured duration; text transitions and an ending card are inserted between clips. The pipeline also supports dark backgrounds, accent colors, progress bars, page indicators, and font fallback.
Limits: the workflow depends on local Chrome/CDP, Pillow, and FFmpeg, and is mainly tuned for Baidu Image search pages. Anti-automation controls, login state, network conditions, and page structure changes can affect download success. It is a template-driven short-video pipeline, not a general-purpose editor; copyright, content compliance, and platform review remain the operator's responsibility.
Use Cases
- Content operators batch-collect themed Baidu Image GIFs, filter static files, and prepare vertical video assets
- Editors compose 8 to 10 motivational or blooper GIFs into a 1080x1920 video with captions, progress bars, and endings
- Browser automation engineers use CDP page monitoring and Pillow frame checks to extract real animated GIF URLs
- Short-video teams reuse one script template and only change directories, copy, and colors to batch-produce clips
Best For
- Content operators running vertical Toutiao or Douyin accounts who need themed GIFs turned into captioned short videos
- Frontend or scraping engineers handling asset downloads who need simple anti-bot workarounds and animated-GIF validation
- Automation engineers using local Python and FFmpeg who need a reusable 9:16 vertical-video rendering template
- Self-media creators producing funny, motivational, or pet content who need batch-ready short-video drafts
Related Skills
Excalidraw Wrap is an Excalidraw-focused wrapper, with tags for TypeScript, GitHub, and automation.
Calibrate vague brand inputs, expose contradictions, distill a brand core and positioning boundaries, then stress-test the result into an executable brand skeleton.
Generate localized Chinese brand names, naming directions, slogans, and risk checklists with reusable templates and trademark search reminders.
A beginner-friendly photo analysis tool that infers shooting parameters from visual features and suggests post-processing, optimization, and learning keywords.