Sin descripción

Joystream Stats 2d0c89e3a5 processVideos: fix worker queue hace 3 años
src 2d0c89e3a5 processVideos: fix worker queue hace 3 años
.env cccecf8e28 Support multiple allowed origins in cors configuration hace 3 años
.gitignore aec2e5c624 Write video metadata after extracting frames, read metadata when loading sprites for video. hace 3 años
Readme.md 3d558e06db Extract ALLOWED_ORIGIN to env variable. hace 3 años
package.json 3d558e06db Extract ALLOWED_ORIGIN to env variable. hace 3 años
tsconfig.json a51f8bd4d1 node JS App for generating sprites and save them as files. hace 3 años
yarn.lock 3d558e06db Extract ALLOWED_ORIGIN to env variable. hace 3 años

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.

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