Permalink
Browse files

Codem-transcode is now a npm package.

  • Loading branch information...
tieleman committed May 24, 2011
1 parent 58bd0b8 commit 626fa06926d5acccf61d42e07ec4783f79eaea92
Showing with 32 additions and 10 deletions.
  1. +1 −1 README.markdown
  2. +5 −0 bin/codem-transcode
  3. +2 −2 { → lib}/config.js
  4. +1 −1 lib/job-handler.js
  5. +1 −1 lib/job.js
  6. +1 −1 lib/server.js
  7. +1 −1 lib/transcoder.js
  8. +20 −0 package.json
  9. +0 −3 transcoder.js
View
@@ -16,7 +16,7 @@ Codem-transcode can be used in conjunction with Codem-schedule (http://github.co
* ffmpeg (compiled/configured to your own taste)
* sqlite3
-* node.js version >= 0.4.x, with packages (use npm):
+* node.js version >= 0.4.x, with packages (if you use npm they will be installed automatically):
* sqlite3 (http://github.com/developmentseed/node-sqlite3)
* connect (http://github.com/senchalabs/Connect)
* argsparser (http://github.com/kof/node-argsparser)
View
@@ -0,0 +1,5 @@
+#!/usr/bin/env node
+
+var Transcoder = require('../lib/transcoder.js');
+
+new Transcoder().boot();
@@ -5,8 +5,8 @@ var os = require('os'),
var config = {
port: 8080,
- access_log: __dirname + '/access_log',
- database: __dirname + '/jobs.db',
+ access_log: '/var/log/access_log',
+ database: '/var/db/jobs.db',
slots: os.cpus().length,
interface: "127.0.0.1",
encoder: "ffmpeg",
View
@@ -1,6 +1,6 @@
var os = require('os'),
util = require('util'),
- config = require('../config').load(),
+ config = require('./config').load(),
Job = require('./job'),
notifyHandler = require('./notify-handler');
View
@@ -3,7 +3,7 @@ var util = require('util'),
fs = require('fs'),
EventEmitter = require('events').EventEmitter,
child_process = require('child_process'),
- config = require('../config').load(),
+ config = require('./config').load(),
dbHandler = require('./db-handler'),
mkdirp = require('mkdirp'),
path = require('path');
View
@@ -1,4 +1,4 @@
-var config = require('../config').load(),
+var config = require('./config').load(),
jobHandler = require('./job-handler'),
fs = require('fs'),
util = require('util'),
View
@@ -1,7 +1,7 @@
var util = require('util'),
server = require('./server'),
dbHandler = require('./db-handler'),
- config = require('../config').load();
+ config = require('./config').load();
var Transcoder = function() {
}
View
@@ -0,0 +1,20 @@
+{
+ "name": "codem-transcode",
+ "description": "Offline video transcoding using ffmpeg, with a small HTTP API.",
+ "version": "0.1.0",
+ "homepage": "http://www.transcodem.com/",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/NPO/codem-transcode.git"
+ },
+ "bin": "./bin/codem-transcode",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "dependencies": {
+ "sqlite3": ">= 2.0.12",
+ "mkdirp": ">= 0.0.2",
+ "connect": ">= 1.4.1",
+ "argsparser": ">= 0.0.5"
+ }
+}
View
@@ -1,3 +0,0 @@
-var Transcoder = require('./lib/transcoder.js');
-
-new Transcoder().boot();

0 comments on commit 626fa06

Please sign in to comment.