This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd nextbus/ | |
$ git init | |
$ vim .gitignore | |
# add files to be ignored | |
$ git add . | |
$ git commit -m 'Initial commit' | |
# setup github repo, adding collaborator(s) | |
$ git remote add origin [email protected]:neweryankee/nextbus.git | |
$ git push origin master | |
$ vim Rakefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.0.0.beta3' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
gem 'pg', '0.8.0' | |
gem 'inherited_resources', '1.1.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* * JavaScript Pretty Date | |
* * Copyright (c) 2008 John Resig (jquery.com) | |
* * Licensed under the MIT license. | |
* */ | |
// Takes an ISO time and returns a string representing how | |
// long ago the date represents. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "fitgem" | |
require "pp" | |
require "yaml" | |
config_file = begin | |
File.open(".fitgem.yml") | |
rescue Object => e | |
puts 'No .fitgem.yml config file found' |
FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.
Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:
ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4
Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.