Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
Playlists are a great way to give your audience more options. If they liked your default video, why not present them with more content to enjoy? Video Cloud makes it easy to curate playlists by hand or automatically through tagging. Once you have playlists created in your account, they're super easy to use with the Brightcove Player.
| $ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4 |
| var http = require('http'); | |
| var router = require('routes')(); | |
| var Busboy = require('busboy'); | |
| var port = 5000; | |
| // Define our route for uploading files | |
| router.addRoute('/images', function (req, res, params) { | |
| if (req.method === 'POST') { | |
| // Create an Busyboy instance passing the HTTP Request headers. |
| (function(window, document, undefined) { | |
| var Storage = {}; | |
| window.Storage = Storage; | |
| Storage.tracking = true; | |
| Storage.track = function() { | |
| Storage.tracking = !Storage.tracking; | |
| if (Storage.tracking) { | |
| console.log("Tracking storage performance."); |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <video></video> | |
| <br/> | |
| <input type="file" name="file" id="fileItem" onchange="onChange()" > |
I have been wanting to learn how to write a mobile app with Phonegap for, well...since I first heard there was such an incredible thing as Phonegap. The very idea that it could make a Objective-C ignorant (but js ambitious) developer like myself, able to take his satisfactory JS/HTML/CSS code and transform it into a satisfactory mobile experience. Yay, Phonegap. But, you probably aren't here because you don't know what Phonegap is, you're probably here because you want to put the oh-so-interesting angularjs framework onto a phone and do incredible things. Well, so did I. I found great tutorials, the best of which is definitely this 4-part delight by [@markcoleman][1].
[Phonegap and Angularjs the Start][2]
I would've been lost without it. However, after I completed it I wanted to build my own app, and I was looking for a place to start. In my exploratory phase with angular, I had discovered the [angular-seed][3] project and [angular-phonecat][4] tutorial. I knew angular-seed would start me out with runnable
| #!/bin/bash | |
| # Based on http://asisolve.com/ffmpeg-encoding-settings-for-web-video/ | |
| for f in src/*.mov | |
| do | |
| name=$(basename $f .mov) | |
| # Convert to mp4 | |
| ffmpeg -i $f -vcodec libx264 -preset slow -profile main -crf 25 -acodec libfdk_aac -ab 64k dist/$name.mp4 |