Git Product home page Git Product logo

chunkey's Introduction

Chunkey

HTTP Live Stream Encoder for endpoints in AWS EC2

This is an HLS library/crawler for conversion from static file hosting to an HLS solution for quick and high-quality/low-latency streaming that is adaptable for differing global connection speeds.

|Build|

[v1.2.3] 2018.5
(c)(GNU-GPL) @edx 2016

Install

`python setup.py install`
NOTE: This requires a compiled version of ffmpeg (with libx264) available here:

Setup

The “Deliver Root” is optional, and can point to a root subdirectory in the bucket, if desired.
The 'encode_profiles.json' file can act as a template for a set of encoding profiles as desired

Use:

from chunkey import Chunkey

VidChunk = Chunkey(mezz_file = 'link_to/file/to_be/transcoded.mp4')

will generate an HLS manifest with as many streams as indicated by default (5), or the optional 'encode_profiles.json' file pointed to by a keyword arg (see below)

Args:

Mandatory:

mezz_file = link_to/file/to_be/transcoded.mp4' ##MANDATORY
    can be filepath or URL

Optional (will deliver file to endpoint)

[MUST PASS CREDENTIALS]

manifest = 'target_manifest_name'

encode_profiles = 'path/to/encode_profiles.json' ## will read defaults

Credential Passing (optional, for delivery)

DELIVER_BUCKET = 's3_bucket_to_deliver_to'

DELIVER_ROOT = 'optional_bucket_directory'

ACCESS_KEY_ID = ''

SECRET_ACCESS_KEY = ''

Retrieve data:

VidChunk.complete -- boolean for completed encode

VidChunk.manifest_url -- endpoint url for manifest (aws s3) or local dir path

chunkey's People

Contributors

azarembok avatar caplan188 avatar feanil avatar jinder1s avatar schenedx avatar ssemenova avatar usamasadiq avatar yro avatar

Watchers

 avatar  avatar

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.