Skip to content

wucke13/make-presentation-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published