Communitygithub.com

페이퍼-공유-스킬

Beamer PDF 슬라이드를 페이지 정렬 내레이션, TTS 오디오, 커버, 업로드 메타데이터를 포함한 오류-종료 방식의 MP4 비디오로 변환합니다. 내레이션 슬라이드, 슬라이드 비디오 또는 페이퍼 비디오 요청 시 트리거됩니다.

페이퍼-공유-스킬란 무엇인가요?

이 스킬은 Beamer PDF 슬라이드를 페이지 단위로 정렬된 내레이션(TTS 오디오 포함)이 포함된 MP4 비디오로 변환하는 완전한 파이프라인을 제공합니다. 각 슬라이드에 대해 내레이션 텍스트를 주석(TeX 파일에 `% NARRATION:` 형식)으로 추가해야 하며, 이후 `full` 명령어를 통해 렌더링, 계획, TTS 생성, 조립, 커버 및 메타데이터 생성을 한 번에 수행합니다. 모든 단계는 엄격한 파일 개수 체크(PNG/TXT/MP3 개수가 일치해야 함), 비어 있지 않은 내레이션 및 오디오, 양수 오디오 길이 등을 요구하여 오류 발생 시 결과물을 남기지 않고 종료합니다. 이 스킬은 Claude Code, Cursor 등 AI 에이전트 환경에서 사용할 수 있으며, 관련 스킬로 배치 파이프라인, 블로그-투-빌리비리, Edge-TTS 재시도 드라이버 등이 연결되어 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Peytontalismanic424/paper-share-skills/tree/HEAD/paper-slides-to-video

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

페이퍼 슬라이드를 비디오로 변환

공개 진입점은 다음과 같습니다:

<SKILLS_DIR>/paper-slides-to-video/scripts/slides_to_video.py

패키지 환경에서 실행하세요:

uv run --project <SKILLS_DIR>/paper-slides-to-video python <SKILLS_DIR>/paper-slides-to-video/scripts/slides_to_video.py <subcommand>

정확한 CLI 명령어

  • render PDF FRAME_DIR [--dpi 200]
  • plan TEX
  • narrations FRAME_DIR TEX --annotated-tex ANNOTATED_TEX
  • tts FRAME_DIR [--lang zh]
  • assemble FRAME_DIR OUTPUT [--pad-sec 0.5] [--speed 1.25]
  • cover FIRST_FRAME OUTPUT
  • metadata TEX COVER OUTPUT
  • full PAPER_DIR --annotated-tex ANNOTATED_TEX

필수 전체 워크플로우

  1. 이 패키지를 호출하기 전에 slides-beamer/main.pdf를 컴파일하세요.
  2. slides-beamer/main.tex를 video/main_with_narration.tex로 복사하고, 렌더링된 각 물리적 페이지마다 하나씩 비어 있지 않은 % NARRATION: 주석을 추가하세요. 이 물리적 페이지별 계약은 가로 및 세로 렌더링이 동기화되도록 유지합니다: 두 방향 모두 동일한 PDF 페이지에서 조립되므로, 내레이션/오디오 개수 조건이 각 방향에 동일하게 적용됩니다.
  3. 주석이 포함된 TeX 경로를 사용하여 full을 실행하세요.
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 명령어는 처리를 시작하기 전에 오래된 내레이션 출력을 제거합니다. 정확한 PNG/TXT/MP3 개수, 비어 있지 않은 내레이션 및 오디오, 탐색 가능한 양수 오디오 지속 시간, 비디오 및 오디오 스트림을 모두 포함하는 조립된 MP4를 요구합니다. 내레이션이나 MP3가 누락되면 0이 아닌 종료 코드로 실패하며, 내레이션된 결과물을 남기지 않습니다.

도구 탐색

  • PDFTOPPM 또는 POPPLER_DIR(pdftoppm이 포함된 디렉터리), 그 다음 PATH
  • FFMPEG, 그 다음 PATH
  • FFPROBE, 그 다음 PATH
  • EDGE_TTS_BIN, 그 다음 PATH

침묵은 절대 암시적으로 생성되지 않습니다. 프로그래밍 방식 호출자는 encode_slide(..., require_audio=False)를 호출하여 의도적으로 침묵 페이지를 만들 수 있습니다. 공개 기본값은 require_audio=True입니다.

출력물은 <PAPER_DIR>/video/ 아래에 기록됩니다: video_frames/, <paper>_narrated.mp4, cover.png, frames_data.json, narrations.json, video_meta.json.

관련 스킬

  • 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

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

Peytontalismanic424/paper-share-skills

Validate and upload narrated paper videos to Bilibili with biliup. Handles required landscape-first/portrait-second submissions, series uploads, CST scheduling, diagnostics, dry-run validation, and durable upload receipts. Trigger on: "upload to bilibili", "bilibili upload", "发布到B站", "上传到B站".

Peytontalismanic424/paper-share-skills

Download the TeX source (e-print tar.gz) of an arXiv paper from an arXiv URL or bare ID, and unpack it into paper_src/. Use FIRST whenever a pipeline input is an arXiv link and the TeX source is preferred over the PDF (paper-to-beamer, paper-to-bilibili, paper-venue-discovery). Invoke with an arXiv URL (abs/pdf/e-print, arxiv.org or export.arxiv.org) or a bare ID like 2509.07996v4.

Peytontalismanic424/paper-share-skills

Automated pipeline: paper (PDF or TeX source) → SUSTech Beamer slides (11-section 论文分享 structure) → compiled PDF. When TeX source is available, skip MinerU and extract content directly from LaTeX. Use when the user asks to create Beamer slides from an academic paper, or says "论文分享", "paper to slides", "make beamer from paper". Invoke with an absolute or relative path to a PDF, .tar.gz TeX archive, .tex file, or an arXiv URL/ID (source TeX is downloaded first via skill://paper-download-arxiv-paper-source).

Peytontalismanic424/paper-share-skills

Orchestrate a paper PDF through MinerU, SUSTech Beamer slides, complete Chinese narration, landscape and portrait video, metadata gates, and Bilibili upload. Supports single-paper and batch slides, video, or bilibili phases. Trigger on full paper-to-Bilibili requests, PDF-to-video publication, and batch paper publishing.

Peytontalismanic424/paper-share-skills

Generate a deterministic 16:10 video-cover poster from a paper directory. Extracts paper metadata and figures and atomically produces poster.tex, poster.pdf, and poster.png. Use for paper-video covers, not conference posters.

Peytontalismanic424/paper-share-skills

Convert a PDF (especially academic papers) to clean Markdown using MinerU — preserves reading order, LaTeX equations, tables, and figures, and runs on the GPU. Use when the user asks to convert/extract a PDF to markdown/text. Invoke directly — no need for the user to type the skill name.

Peytontalismanic424/paper-share-skills

Fix for undefined \setsource/\setdomains/\setpresenter/\setvenue commands when compiling SUSTech Beamer slides from the standard template. Copy the extended beamerthemesustech.sty from the sustech-slides-template repository.

관련 스킬