Repository navigation
feat(contrib): add script-to-short talking-character Shorts pipeline - #1814
Open
simply-Rahul8 wants to merge 1 commit into
Open
simply-Rahul8 wants to merge 1 commit into
simply-Rahul8 wants to merge 1 commit into
Conversation
Add contrib/script-to-short/, a self-contained pipeline (own venv, requirements and config; imports nothing from app/) that turns a rough script into a vertical Short performed by a recurring 2D character and publishes it to YouTube and, optionally, Instagram. It is built as Claude Code skills: - script-to-short: script development, directing, metadata, publishing - anime-talking-short: render.py (voice, Rhubarb lip-sync, camera, captions, sound mix, encode), sound.py, build_poses.py (character import and mouth calibration) - youtube-upload / instagram-upload: OAuth or dashboard tokens only, mandatory channel or account check, no delete operations No character art, accounts, tokens or generated media are included, and there is no image-generation code: users make their own art. The Rhubarb download is pinned by SHA-256. publishing is off by default (auto_publish=false). Optional extras: a Chatterbox voice engine (setup_chatterbox.py, isolated env, off unless set up; edge-tts stays the default) and an Instagram video_url route for Reels the direct upload refuses (asks the user before opening any public URL). Also exclude contrib/ from the Docker image and add a CI test that runs the pipeline's two self-tests (parser, shot planner, viseme rules, SFX synthesis), which need only numpy and Pillow. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
contrib/script-to-short/: a self-contained, optional pipeline that takes a rough script to a finished vertical Short performed by a recurring 2D character, and publishes it. It was split out of #1806 (the music-ducking change) at the maintainer's request, so installation, assets and publishing can be reviewed on their own. This PR does not touch the application: no changes toapp/,pyproject.toml,uv.lockor theDockerfile. The only shared-file change is one.dockerignoreline, plus one test.The pipeline's open-source home is simply-Rahul8/MTP-clone-YT-Automation-pipeline. This PR was built from that repository, including its latest changes (optional Chatterbox voice, Instagram
video_urlroute).MoneyPrinterTurbo assembles stock footage. This pipeline does something different: one recurring character performs your script, with lip-sync, directed camera work, captions and a designed sound mix. It lives under
contrib/so it stays out of the way.Stages and what each actually is
skills/script-to-short/SKILL.mdrender.py --dry, which measures the spoken length against a 56-60 s target. Writing the script needs an agent; a plain script cannot do it.skills/anime-talking-short/SKILL.md,render.pyrender.pyparses and validates it.build_poses.py,my/render.py,sound.pysetup_chatterbox.py,chatterbox_voice.py,cb_synth.pysetup_chatterbox.py.skills/youtube-upload,skills/instagram-uploadWhat is deliberately not included
my/sheet.example.jsonand a README on making a character.config.json,my/*, tokens and media are git-ignored by the folder's own.gitignore.install.py(taken from a direct HTTPS download of the official assets, so this pins the release against later tampering; it is not a publisher signature). Fonts are looked up on the system.Independence
Own
.venv,requirements.txtandconfig.json; imports nothing fromapp/. Its dependencies (edge-tts, Pillow, numpy, imageio-ffmpeg, the Google client libraries) are installed into that venv byinstall.py, not into this project's.contrib/is outside CI's compileall/ruff/coverage scopes (it passesruff checkanyway); the only CI-collected addition istest/test_script_to_short_selftest.py, which runs the pipeline's two self-tests (parser, shot planner, viseme rules, SFX synthesis; numpy and Pillow only).Things to look at closely
setup_chatterbox.pycreates a separate environment in~/tts-lab(or$TTS_LAB) and installschatterbox-tts,soundfileandsetuptools<81from PyPI without pinned versions or hashes. The first render downloads about 3 GB of model weights from Hugging Face. Nothing runs unless the user chooses to run it. If you'd rather not carry that, it can be dropped without affecting the rest.video_urlroute.upload_url.pyhands Meta a public URL to download. The skill's recipe uses a temporary Cloudflare quick tunnel serving one randomly named copy, and tells the agent to ask the user before opening any tunnel, every time, and to tear it down immediately. The defaultupload.pyroute uploads straight to Meta with no third party.auto_publishisfalseinconfig.example.json, and the skills tell the agent to show the title, description and slot and ask before any upload. The YouTube uploader requires--channeland stops if the login is for a different channel; the Instagram uploader requires--accountand stops if the token has no access to it. OAuth / dashboard tokens only, never passwords, stored under~/.youtube-upload/and~/.instagram-upload/outside the repo (the YouTube token file is mode 0600). Nothing deletes videos.Known limits (please read)
Verification
ruff check app cli.py main.py webui test docs/skill contribandcompileall: pass.test/test_script_to_short_selftest.py: 2 passed locally on Windows. In feat(audio): duck background music under narration #1806's CI the same test passed on Python 3.11, 3.13 and Windows. I did not re-run CI for this branch yet when opening the PR.install.pyandsetup_chatterbox.pyend to end.For the maintainer
If you would rather not carry this folder in the main repository, I can move it to a separate repository you link to. I have not started any other upstream changes.
🤖 Generated with Claude Code