šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/hiway-media/sprite-preview

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hiway-media/sprite-preview

v1.0.0
Source
Go
Version published
Created
Source

Sprite Preview

sprite-preview is a tool that extracts frames from a video file and creates a sprite sheet of these frames. It also generates a VTT file that allows displaying the video using the sprite sheet.

Preview

2023-03-30 11 25 50

Installation

To use sprite-preview, you must have Go installed on your system. You can then install sprite-preview using the following command:

go get github.com/Paxx-RnD/sprite-preview

Prerequisites

Before installing this project, make sure you have the following prerequisites installed:

  • FFmpeg
  • ImageMagick

macOS

brew install imagemagick
brew install ffmpeg

Linux

apt install imagemagick
apt install ffmpeg

Usage

sprite-preview -i input_file.mp4 -o output.png -f 1 -w 160 -h 90 -v output.vtt

Flags

  • i: Path to the input video file.
  • o: Path to the output sprite sheet file.
  • col: Number of columns in the sprite sheet.
  • row: Number of rows in the sprite sheet.
  • f: Frequency of frames extraction in seconds.
  • w: Width of each frame in pixels.
  • h: Height of each frame in pixels.
  • vtt: Path to the output VTT file. If not specified, no VTT file will be generated.

FAQs

Package last updated on 12 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts