Coder Social home page Coder Social logo

rahulvanmali21 / playback-packager Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 26 KB

node js library and cli for muxing media file into HLS and DASH format as well as creating preiview gifs and thumbnail sprites

TypeScript 83.70% JavaScript 16.30%

playback-packager's Introduction

Playback Packager

This is a command-line tool and library for generating DASH, HLS, preview GIF, and thumbnail sprites using FFmpeg and Fluent-FFmpeg. It's written in TypeScript and can be used either as a CLI tool or by importing the functions directly into your own code.

Features

  • Generate DASH (Dynamic Adaptive Streaming over HTTP) files for video streaming.
  • Create HLS (HTTP Live Streaming) playlists for video playback on various devices.
  • Generate preview GIFs from video files.
  • Create thumbnail sprites to provide a visual overview of the video content.
  • Command-line interface for easy usage.
  • Library functions for integrating the tool into your own projects.

Requirements

FFmpeg: Make sure you have FFmpeg installed on your system. You can download it from the official FFmpeg website (https://ffmpeg.org).

Installation

Clone the repository:

git clone https://github.com/your-username/your-repository.git

Install the dependencies:

npm install

Usage

CLI Tool

install globally

npm install -g .

Run the tool with the desired command:

npm run start -i input.mp4 -dash -o output

Library Functions

Import the desired functions into your TypeScript/JavaScript code:

import { generateDASH, generateHLS, generatePreviewGIF, generateThumbnails } from 'video-processing-tool';

Use the imported functions with the required parameters in your code.

Available Commands

  • -i: input media file(.mp4,.mov,.avi,.mkv)

  • -o: output directory fot storing all the generated files

  • -dash: Generate DASH files for video streaming.

  • -hls: Create HLS playlists for video playback.

  • -gif: Generate a preview GIF from a video file.

  • -thumbnails: Create thumbnail sprites for a video file.

Contributing

Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

playback-packager's People

Contributors

rahulnbai avatar rahulvanmali21 avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

playback-packager's Issues

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.