I hereby claim:
- I am mmcc on github.
- I am mmcc (https://keybase.io/mmcc) on keybase.
- I have a public key whose fingerprint is C593 0B26 13C5 134C A904 2CF0 EC2F 9549 C5B6 236A
To claim this, I am signing this object:
| var path = require('path'); | |
| var zencoder = require('zencoder')(); | |
| var AWS = require('aws-sdk'); | |
| var _ = require('lodash'); | |
| // I need to use this on my personal machine to load the correct credentials from my AWS config | |
| // This isn't necessary if you're doing something like setting ENV variables | |
| var credentials = new AWS.SharedIniFileCredentials({profile: 'some-aws-credentials'}); | |
| AWS.config.credentials = credentials; |
| #!/bin/sh | |
| # Fix NTP/Time | |
| # https://github.com/boot2docker/boot2docker/issues/290 | |
| boot2docker ssh -- sudo killall -9 ntpd | |
| boot2docker ssh -- sudo ntpclient -s -h pool.ntp.org | |
| boot2docker ssh -- sudo ntpd -p pool.ntp.org |
| function initEventSource(route) { | |
| var source = new EventSource(route); | |
| source.onopen = connectionEstablished; | |
| source.onmessage = messageReceived; | |
| source.onerror = connectionError; | |
| return source; | |
| } |
I hereby claim:
To claim this, I am signing this object:
| { | |
| "input": "s3://zencodertesting/tobias.mp4", | |
| "output": [ | |
| { | |
| "audio_bitrate": 64, | |
| "audio_sample_rate": 22050, | |
| "base_url": "s3://zencodertesting/tobias-encrypted/", | |
| "filename": "file-64k.m3u8", | |
| "format": "aac", | |
| "public": 1, |
| var zc = require('zencoder')() | |
| , request = require('request') | |
| , options = {}; | |
| function initialize(output_location) { | |
| var timestamp = new Date(); | |
| options.folder = timestamp.toISOString() + '/'; | |
| options.base_url = "s3://zencoder-jobs/" | |
| console.log("Files will be placed in " + options.folder); | |
| getRenditions(); |
| /*! | |
| Video.js Default Styles (http://videojs.com) | |
| Version GENERATED_AT_BUILD | |
| Create your own skin at http://designer.videojs.com | |
| */ | |
| // To customize the player skin, change the values of the variables or edit the | |
| // CSS below. | |
| // (This file uses LESS. Learn more at http://lesscss.org/) |
| // require Zencoder integration library | |
| var zencoder = require('zencoder')() | |
| , colors = require('colors'); | |
| console.log('Sending API request...'.blue); | |
| // send a request | |
| zencoder.Job.create({ | |
| "live_stream": true, | |
| "event_length": 600, |
| var jobId = 12345; | |
| var jobProgress = 0; | |
| function poll() { | |
| setTimeout(function() { | |
| $.ajax({ | |
| url: 'https://app.zencoder.com/api/v2/jobs/' + jobId + '/progress', | |
| type: 'GET', | |
| headers: { "Zencoder-Api-Key": 'ZENCODER READ ONLY API KEY' }, | |
| //dataType: 'json', |
| { | |
| "color_scheme": "Packages/Base16/base16-eighties.dark.tmTheme", | |
| "detect_indentation": true, | |
| "draw_white_space": "selection", | |
| "ensure_newline_at_eof_on_save": true, | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store", | |
| ".tags*", | |
| "*.pyc", |