Dbee is a project mainly written in RUBY and PYTHON, based on the MIT license.
A Distributed Batch Encoding Environment
Use bundle to install dependencies. ::
$ git clone git://github.com/nabeken/dbee.git
$ cd dbee
$ bundle
$ git submodule init
Setup redis
Setup Web server
Build ffmpeg with x264
Build wine
Build patched faad
Sign up Amazon S3 or Setup swift
Copy config.rb.sample to config.rb and Edit ::
$ config.rb.sample config.rb $ vi config.rb
Start API server. ::
$ god -c god/thin.god
Start workers. ::
$ god load god/all-in-one.god
Enqueue it! ::
$ ruby bin/dbee-enqueuer.rb homuhomu.ts
::
+-----+ +--------+ +-------+
| API |---------| Resque |---------| Redis |
+-----+ +--------+ +-------+
| |
| +--------+ |
+------------| Worker |-------------+
+-------------+ | +--------+ | +----------+
| | +------------| Worker |-------------+ | |
| | | +--------+ | | | +---------------------+
| Web server |--+------------| Worker |-------------+---| S3/Swift |---| iPad/iPhone/Android |
| | | +--------+ | | | +---------------------+
| | +------------| Worker |-------------+ | |
+-------------+ | +--------+ | +----------+
+------------| Worker |-------------+
+--------+