Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
class UsersController < ApplicationController | |
include Clearance::App::Controllers::UsersController | |
# Override and add in a check for invitation code | |
def create | |
@user = User.new params[:user] | |
invite_code = params[:invite_code] | |
@invite = Invite.find_redeemable(invite_code) | |
if invite_code && @invite |
require "luanode.http" | |
local router = require "route66".new() | |
router:get("/prompt", function(req, res) | |
res:writeHead(200, { ["Content-Type"] = "text/plain"}) | |
res:finish(">:") | |
end) | |
router:get("/hello/(.+)", function(req, res, user) | |
res:writeHead(200, { ["Content-Type"] = "text/plain"}) |
--database=postgresql | |
--skip-test-unit | |
--skip-bundle | |
--template=https://gist.github.com/jwaldrip/5538342/raw/rails-template.rb |
group :production do | |
gem 'unicorn' | |
# Enable gzip compression on heroku, but don't compress images. | |
gem 'heroku-deflater' | |
# Heroku injects it if it's not in there already | |
gem 'rails_12factor' | |
end |
package main | |
import ( | |
"flag" | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"strings" | |
) |