Skip to content

Instantly share code, notes, and snippets.

View jayroh's full-sized avatar
😎

Joel Oliveira jayroh

😎
View GitHub Profile
@jayroh
jayroh / ffmpeg-watermark.md
Created July 8, 2020 14:46 — forked from bennylope/ffmpeg-watermark.md
FFmpeg add a watermark to video

How to Add a Watermark to Video

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.

#!/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'
/*
* * 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.
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'
$ 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 git@github.com:neweryankee/nextbus.git
$ git push origin master
$ vim Rakefile
@jayroh
jayroh / gist:186191
Created September 13, 2009 13:41 — forked from pat/gist:181369
We couldn’t find that file to show.