Skip to content

baloda/msprites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msprites, media thumbnail sprites, multipule thumbnail spirtes

Requirements:

1. FFmpeg
2. ImageMagick Montage

Steps:

1. Extract images using ffmpeg. You can configure size of image and image rate per second(ips)
2. Convert Image in spirtesheet of grid ROWSxCOLS
3. Create a webvtt file of spritesheet images

It uses temp folder for storage. for persistence storage move these different folder or location.

Installation pip install msprites

How to use:

import os
from msprites import Settings as SpriteSetting
from msprites import MontageSprites

SpriteSetting.load(ips=0.50)
sprite = MontageSprites.from_media(
    path="..SampleVideo_360x240_20mb.mp4",create_webvtt=True
)

print(sprite.dir.name)
for filename in os.listdir(sprite.dir.name):
    print(filename)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages