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.
`python setup.py install`
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)
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
DELIVER_BUCKET = 's3_bucket_to_deliver_to' DELIVER_ROOT = 'optional_bucket_directory' ACCESS_KEY_ID = '' SECRET_ACCESS_KEY = ''
VidChunk.complete -- boolean for completed encode VidChunk.manifest_url -- endpoint url for manifest (aws s3) or local dir path