paper-slides-to-video
Skill43 starsChanged 4 months agoApache-2.0View on GitHub
Convert Beamer PDF slides into a fail-closed narrated MP4 with page-aligned narration, TTS audio, cover, and upload metadata. Trigger on narrated slides, slide video, or paper video requests.
In this repository7 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Run it with the package environment:
- Very specific: line 40
Run full with the annotated TeX path.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Paper Slides to Video
The public entrypoint is:
<SKILLS_DIR>/paper-slides-to-video/scripts/slides_to_video.pyRun it with the package environment:
uv run --project <SKILLS_DIR>/paper-slides-to-video python <SKILLS_DIR>/paper-slides-to-video/scripts/slides_to_video.py <subcommand>Exact CLI
render PDF FRAME_DIR [--dpi 200]plan TEXnarrations FRAME_DIR TEX --annotated-tex ANNOTATED_TEXtts FRAME_DIR [--lang zh]assemble FRAME_DIR OUTPUT [--pad-sec 0.5] [--speed 1.25]cover FIRST_FRAME OUTPUTmetadata TEX COVER OUTPUTfull PAPER_DIR --annotated-tex ANNOTATED_TEX
Required full workflow
- Compile
slides-beamer/main.pdfbefore invoking this package. - Copy
slides-beamer/main.textovideo/main_with_narration.texand add one nonempty% NARRATION:annotation for every rendered physical page. This per-physical-page contract is what keeps landscape and portrait renders in sync: both orientations are assembled from the same PDF pages, so narration/audio cardinality gates apply equally to each orientation. - Run
fullwith the annotated TeX path.
uv run --project <SKILLS_DIR>/paper-slides-to-video python <SKILLS_DIR>/paper-slides-to-video/scripts/slides_to_video.py full "<PAPER_DIR>" --annotated-tex "<PAPER_DIR>/video/main_with_narration.tex"full removes any stale narrated output before processing. It requires exact PNG/TXT/MP3 cardinality, nonempty narration and audio, probeable positive audio durations, and an assembled MP4 containing both video and audio streams. A missing narration or MP3 exits nonzero and cannot leave a narrated result.
Tool discovery
PDFTOPPMorPOPPLER_DIR(directory containingpdftoppm), thenPATHFFMPEG, thenPATHFFPROBE, thenPATHEDGE_TTS_BIN, thenPATH
Silence is never implicit. Programmatic callers may create a deliberately silent page only by calling encode_slide(..., require_audio=False). The public default is require_audio=True.
Outputs are written under <PAPER_DIR>/video/: video_frames/, <paper>_narrated.mp4, cover.png, frames_data.json, narrations.json, and video_meta.json.
Related skills
- skill://batch-papers-single-omp-full-pipeline
- skill://batch-slides-to-video
- skill://blog-to-bilibili
- skill://edge-tts-retry-video-driver
- skill://index-tts-fallback
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

