Giter Site home page Giter Site logo

make-presentation-video's Introduction

About

This is my dirty little stunt to fully automate the flow of creating presentation videos. Its raw, its not safe (shell injection ?!) and its slow. But, it's good enough for now ๐Ÿ˜„.

How does it work?

The user of this tool provides two inputs:

  • slides.pdf: A slide deck, in PDF format
  • script.txt: A script, to be spoken during the slides

Provided with this input, roughly the following happens:

  1. The script is split into text snippets
  2. The PDF is rendered to PNG images
  3. Each snippet is (sym-)linked annotated with its corresponding page in the slides
  4. Each snippet is spoken by tts into an audio file
  5. All audio files are concatenated into one audio file
  6. The PNGs are concatenated into one video
  7. The final video is assembled from the outputs of step 5. and step 6.

The script is expected to be in the following format:

--- slide=1 ---

I got something to say about this slide, uhm. Its great! Yeah, uhm. Thats it.

--- slide++ ---

More greatness! Ah no, forgot.
There was something important on the first slide, let's quickly jump back.

--- slide=1 ---

There we go. The end.

An example, quick!

Worry not, here is an example from the demo slides:

output.mp4

Reference

Snippet separator

The snippet separator must be a line conforming to the <snippet_separator> non-terminal of the following EBNF:

<snippet_separator> ::= <fix> " slide" <op> " " <fix>
<fix> ::= "---"
<int> ::= "-"? [0-9]+
<infix_op> ::= ("=" | "+=" | "-=")
<unary_op> ::= "++" | "--"
<op> ::= <unary_op> | (<infix_op> <int>)

During the talking of a snippet, the current slide page slide will be shown.

Regenerate the demo slides.pdf from slides.md

nix shell nixpkgs#pandoc nixpkgs#texlive.combined.scheme-full --command pandoc -t beamer demo/slides.md -o demo/slides.pdf

Resources

make-presentation-video's People

Stargazers

Alexander Ahlbrecht avatar Johann Christensen avatar Tim Schubert avatar

Watchers

wucke13 avatar

make-presentation-video's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.