Nessuna descrizione

Joystream Stats 3c49b477f5 rm fix 3 anni fa
server 9edc28635d backend 3 anni fa
src 3c49b477f5 rm fix 3 anni fa
.env 09fcbbd06a Using dotenv, update readme. 3 anni fa
.gitignore a51f8bd4d1 node JS App for generating sprites and save them as files. 3 anni fa
Readme.md 09fcbbd06a Using dotenv, update readme. 3 anni fa
frames.mp4 a51f8bd4d1 node JS App for generating sprites and save them as files. 3 anni fa
package.json 9edc28635d backend 3 anni fa
tsconfig.json a51f8bd4d1 node JS App for generating sprites and save them as files. 3 anni fa
yarn.lock 09fcbbd06a Using dotenv, update readme. 3 anni fa

Readme.md

Frames Extraction

Extract frames from video, save as files and generates sprites combining those frames with a specified row and column size.

Configuration

Can be updated using .env file.

VIDEO_SOURCE path to video file, defaults to /frames.mp4

FRAME_SIZE - extract every n amount of frames defaults to 30 which is every one second if video has 30 fps

FRAMES_DIR - directory where to store (after sprite generation it gets cleaned up) ./frames it will be remove

SPRITES_DIR - directory where to store generated ./sprites

SPRITE_ROW_SIZE - elements in one row, defaults to 6

SPRITE_MAX_LINES - max lines in one sprite, defaults to 12

Commands

yarn install dependencies

yarn dev run in dev mode using ts-node