gitwtfhub

wtf is avatar-mix?

upload-post/avatar-mix — explained in plain English

Analysis updated 2026-05-18

112PythonAudience · vibe coderComplexity · 4/5Setup · hard

TL;DR

A Python pipeline that converts a URL or script into a polished social media video starring your AI avatar, with animated backgrounds, music, captions, and automatic publishing to TikTok, YouTube, and more.

Mindmap

mindmap
  root((avatar-mix))
    What It Does
      URL to finished video
      AI avatar narration
      16:9 and 9:16 output
    Pipeline Steps
      HeyGen avatar clips
      HyperFrames backgrounds
      FFmpeg compositing
      Caption overlay
    Tech Stack
      Python
      Node.js
      FFmpeg
    Publishing
      TikTok and Reels
      YouTube and LinkedIn
      Upload-Post API
    Setup Needs
      HeyGen subscription
      Digital twin avatar
      Local dependencies

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Create a 9:16 TikTok explainer video for a product by pointing the pipeline at its URL and your HeyGen avatar credentials

REASON 2

Produce 16:9 YouTube videos and 9:16 Reels versions simultaneously from a single script file

REASON 3

Generate animated code-explainer videos using HyperFrames graphics with your digital-twin avatar as presenter

REASON 4

Auto-publish finished videos to multiple social networks in one step using the Upload-Post API integration

What's in the stack?

PythonFFmpegNode.jsHeyGen APIHyperFramesUpload-Post APIPillow

How it stacks up

upload-post/avatar-mixcanwhite/microragexploitbench/exploitbench
Stars112112112
LanguagePythonPythonPython
Setup difficultyhardeasyhard
Complexity4/54/5
Audiencevibe coderresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Requires a paid HeyGen Creator subscription ($29/month), a digital-twin avatar, plus FFmpeg, Node.js 22, and Python 3 installed locally.

Wtf does this do

avatar-mix is a Python pipeline that turns a URL or a written script into a finished social media video featuring a digital-twin AI avatar. You provide either a product URL or a scene script, and the tool generates a video where your avatar presents the content against custom animated backgrounds, with music, context-aware sound effects, and animated captions, in both 16:9 (YouTube, LinkedIn) and 9:16 (TikTok, Reels, Shorts) simultaneously. The pipeline runs through eight steps: it breaks the input into a scene-by-scene script, generates one avatar clip per scene through the HeyGen API, measures the clip durations, builds animated backgrounds using HyperFrames (a headless-browser tool that renders custom HTML graphics and exports them as video), selects music and sound effects, composites everything with FFmpeg, adds caption animations for vertical video, and strips metadata before publishing. All steps after avatar generation run locally at no cost. Each video cycles through three scene layouts: fullscreen (avatar fills the screen), corner (animated background with the avatar in a small picture-in-picture box), and background-only (the graphic takes the whole frame while the avatar narration continues as voice-over). The cycling gives the edit a more produced look. To use the tool you need a HeyGen Creator subscription ($29 per month), your own digital-twin avatar and voice, FFmpeg, Node.js 22 or higher, and Python 3 with Pillow. An Upload-Post account is needed only if you want automatic publishing to social networks. Only avatar generation draws down HeyGen credits, background rendering, audio mixing, captions, and compositing are free. The project is designed as a reusable skill: once the initial setup is done, producing each new video requires only a new URL or script. It can be driven by an AI coding assistant such as Claude Code, or run directly via the included shell scripts. The README provides a full workflow diagram, example configuration files, and a sample skill definition.

Yoink these prompts

Prompt 1
Using avatar-mix, generate a 9:16 TikTok video for this URL: [URL]. Use HeyGen avatar ID [ID] and voice ID [ID]. Add Hormozi-style captions.
Prompt 2
Help me fill in config/avatar.json for avatar-mix. I have my HeyGen avatar_id and voice_id. What else does the file need?
Prompt 3
In avatar-mix's composite.py, how do I change the scene mode sequence so bg_only appears more often than corner?
Prompt 4
How does avatar-mix's sync_animations.py pull new components? I want to add a custom HyperFrames animation to the backgrounds.
Prompt 5
Use avatar-mix's publish.sh to upload output/video_9x16.mp4 to TikTok and Instagram via the Upload-Post API.

Frequently asked questions

wtf is avatar-mix?

A Python pipeline that converts a URL or script into a polished social media video starring your AI avatar, with animated backgrounds, music, captions, and automatic publishing to TikTok, YouTube, and more.

What language is avatar-mix written in?

Mainly Python. The stack also includes Python, FFmpeg, Node.js.

How hard is avatar-mix to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is avatar-mix for?

Mainly vibe coder.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.