Git Product home page Git Product logo

learnalist-slideshow-to-video's Introduction

Example that stitches images together and then makes a movie based on durations

Prerequisite

  • Install ffmpeg
  • Install imagemagick (convert)
  • Install Node (runs on 19.5) etc
brew install ffmpeg
ffmpeg -y \
-i in.ffconcat \
-preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 4500k -minrate 4500k -maxrate 9000k -bufsize 9000k -vf scale=-1:1080 \
output.mp4

Build based on indvidual durations

echo '{
    "server": "https://learnalist.net",
    "uuid": "3e317b11-eebc-5cbc-8211-2047f47839da",
    "durations": ["600ms", "1000ms", "600ms", "600ms", "600ms", "600ms", "600ms"],
    "all": false
}' | jq -c | node pipe.js

1 duration for all

  • 3 seconds per slide
echo '{
    "server": "https://learnalist.net",
    "uuid": "3e317b11-eebc-5cbc-8211-2047f47839da",
    "durations": ["3s"],
    "all": true
}' | jq -c | node pipe.js

Playwright

โœ” Success! Created a Playwright Test project at /Users/freshteapot/git/learnalist-slideshow-to-video

Inside that directory, you can run several commands:

npx playwright test Runs the end-to-end tests.

npx playwright test --project=chromium Runs the tests only on Desktop Chrome.

npx playwright test example Runs the tests in a specific file.

npx playwright test --debug Runs the tests in debug mode.

npx playwright codegen Auto generate tests with Codegen.

We suggest that you begin by typing:

npx playwright test

And check out the following files:

  • ./e2e/example.spec.ts - Example end-to-end test
  • ./tests-examples/demo-todo-app.spec.ts - Demo Todo App end-to-end tests
  • ./playwright.config.ts - Playwright Test configuration

Visit https://playwright.dev/docs/intro for more information. โœจ

Happy hacking! ๐ŸŽญ

Whip up a pdf

convert ./data/3e317b11-eebc-5cbc-8211-2047f47839da/page*.png ./data/3e317b11-eebc-5cbc-8211-2047f47839da/3e317b11-eebc-5cbc-8211-2047f47839da.pdf

echo '{ "server": "https://learnalist.net", "uuid": "4be3f7c4-a7ea-52b7-a0e9-7d60a20b828e", "durations": ["3s"], "all": true }' | jq -c | node pipe.js

learnalist-slideshow-to-video's People

Contributors

freshteapot avatar

Watchers

 avatar James Cloos avatar

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.