Code Monkey home page Code Monkey logo

media-node's Introduction

⚠️ This project is achieved and replaced by https://rtmedia.io/transcoder/


media-node

A node.js wrapper for ffmpeg. Made for https://github.com/rtmediawp/rtmedia

Handcrafted Enterprise WordPress Solutions by rtCamp

Install

sudo apt-get install libcurl4-openssl-dev build-essential
sudo npm install -g node-gyp
npm install formidable connect sqlite3

API

Note: Replace IP:PORT when running following commands

Using CURL

Status

curl 127.0.0.1:1023/status

Version

curl 127.0.0.1:1023/version

Upload End point

curl 127.0.0.1:1023/upload -F "upload=@/path/to/video/file.ext" -F "callback_url=http://something/callback.php"

Test using browser

URLs

  • Upload Form - 127.0.0.1:1023/
  • Status - 127.0.0.1:1023/status
  • Version - 127.0.0.1:1023/version

Nginx Proxy

If you are running media-node on 127.0.0.1 on remote server, then you should create a proxy site redirect traffic from local server to media-node during testing.

media-node's People

Contributors

actual-saurabh avatar bhargavbhandari90 avatar dharmin avatar dhsathiya avatar faishal avatar gagan0123 avatar harshadyeola avatar iam404 avatar justinflipflops avatar miteshshah avatar nitun avatar rahul286 avatar ritesh-patel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

media-node's Issues

Error after Copying Media Node

Hi,

I already made some updates to be able to install Media Node on a Ubuntu 14.04.2 LTS but am stuck and can't find any solutions to resolve this error :

Cloning into 'media-node'...
remote: Counting objects: 1228, done.
remote: Total 1228 (delta 0), reused 0 (delta 0), pack-reused 1228
Receiving objects: 100% (1228/1228), 414.09 KiB | 0 bytes/s, done.
Resolving deltas: 100% (424/424), done.
Checking connectivity... done.
‘media-node/ffmpeg_server.js’ -> ‘/root/media-node/ffmpeg_server.js’
‘media-node/install.sh’ -> ‘/root/media-node/install.sh’
‘media-node/package.json’ -> ‘/root/media-node/package.json’
‘media-node/README.md’ -> ‘/root/media-node/README.md’
‘media-node/setup’ -> ‘/root/media-node/setup’
‘media-node/setup/ubuntu.sh’ -> ‘/root/media-node/setup/ubuntu.sh’
‘media-node/setup/check.sh’ -> ‘/root/media-node/setup/check.sh’
‘media-node/setup/update.sh’ -> ‘/root/media-node/setup/update.sh’
‘media-node/setup/redhat.sh’ -> ‘/root/media-node/setup/redhat.sh’
‘media-node/setup/debian.sh’ -> ‘/root/media-node/setup/debian.sh’
‘media-node/setup/redhat5.sh’ -> ‘/root/media-node/setup/redhat5.sh’
‘media-node/.git’ -> ‘/root/media-node/.git’
‘media-node/.git/info’ -> ‘/root/media-node/.git/info’
‘media-node/.git/info/exclude’ -> ‘/root/media-node/.git/info/exclude’
‘media-node/.git/branches’ -> ‘/root/media-node/.git/branches’
‘media-node/.git/config’ -> ‘/root/media-node/.git/config’
‘media-node/.git/logs’ -> ‘/root/media-node/.git/logs’
‘media-node/.git/logs/HEAD’ -> ‘/root/media-node/.git/logs/HEAD’
‘media-node/.git/logs/refs’ -> ‘/root/media-node/.git/logs/refs’
‘media-node/.git/logs/refs/remotes’ -> ‘/root/media-node/.git/logs/refs/remotes’
‘media-node/.git/logs/refs/remotes/origin’ -> ‘/root/media-node/.git/logs/refs/remotes/origin’
‘media-node/.git/logs/refs/remotes/origin/HEAD’ -> ‘/root/media-node/.git/logs/refs/remotes/origin/HEAD’
‘media-node/.git/logs/refs/heads’ -> ‘/root/media-node/.git/logs/refs/heads’
‘media-node/.git/logs/refs/heads/master’ -> ‘/root/media-node/.git/logs/refs/heads/master’
‘media-node/.git/packed-refs’ -> ‘/root/media-node/.git/packed-refs’
‘media-node/.git/HEAD’ -> ‘/root/media-node/.git/HEAD’
‘media-node/.git/refs’ -> ‘/root/media-node/.git/refs’
‘media-node/.git/refs/tags’ -> ‘/root/media-node/.git/refs/tags’
‘media-node/.git/refs/remotes’ -> ‘/root/media-node/.git/refs/remotes’
‘media-node/.git/refs/remotes/origin’ -> ‘/root/media-node/.git/refs/remotes/origin’
‘media-node/.git/refs/remotes/origin/HEAD’ -> ‘/root/media-node/.git/refs/remotes/origin/HEAD’
‘media-node/.git/refs/heads’ -> ‘/root/media-node/.git/refs/heads’
‘media-node/.git/refs/heads/master’ -> ‘/root/media-node/.git/refs/heads/master’
‘media-node/.git/objects’ -> ‘/root/media-node/.git/objects’
‘media-node/.git/objects/info’ -> ‘/root/media-node/.git/objects/info’
‘media-node/.git/objects/pack’ -> ‘/root/media-node/.git/objects/pack’
‘media-node/.git/objects/pack/pack-328df686c9cb13dccf38e257b95f5aae3076cc5a.pack’ -> ‘/root/media-node/.git/objects/pack/pack-328df686c9cb13dccf38e257b95f5aae3076cc5a.pack’
‘media-node/.git/objects/pack/pack-328df686c9cb13dccf38e257b95f5aae3076cc5a.idx’ -> ‘/root/media-node/.git/objects/pack/pack-328df686c9cb13dccf38e257b95f5aae3076cc5a.idx’
‘media-node/.git/index’ -> ‘/root/media-node/.git/index’
‘media-node/.git/description’ -> ‘/root/media-node/.git/description’
‘media-node/.git/hooks’ -> ‘/root/media-node/.git/hooks’
‘media-node/.git/hooks/applypatch-msg.sample’ -> ‘/root/media-node/.git/hooks/applypatch-msg.sample’
‘media-node/.git/hooks/pre-rebase.sample’ -> ‘/root/media-node/.git/hooks/pre-rebase.sample’
‘media-node/.git/hooks/pre-commit.sample’ -> ‘/root/media-node/.git/hooks/pre-commit.sample’
‘media-node/.git/hooks/pre-applypatch.sample’ -> ‘/root/media-node/.git/hooks/pre-applypatch.sample’
‘media-node/.git/hooks/post-update.sample’ -> ‘/root/media-node/.git/hooks/post-update.sample’
‘media-node/.git/hooks/prepare-commit-msg.sample’ -> ‘/root/media-node/.git/hooks/prepare-commit-msg.sample’
‘media-node/.git/hooks/update.sample’ -> ‘/root/media-node/.git/hooks/update.sample’
‘media-node/.git/hooks/commit-msg.sample’ -> ‘/root/media-node/.git/hooks/commit-msg.sample’
‘media-node/.git/hooks/pre-push.sample’ -> ‘/root/media-node/.git/hooks/pre-push.sample’
spotmedias@ns:$
spotmedias@ns:
$
spotmedias@ns:~$ TypeError: Object function createServer() {
function app(req, res, next){ app.handle(req, res, next); }
merge(app, proto);
merge(app, EventEmitter.prototype);
app.route = '/';
app.stack = [];
return app;
} has no method 'static'
at Object. (/root/media-node/ffmpeg_server.js:383:24)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
Error: SQLITE_ERROR: duplicate column name: duration
Error: SQLITE_ERROR: duplicate column name: thumbs

Thank you

Ubuntu 8.04 Failed To Install VP8 Repository

Ubuntu 8.04 Installation is failed to clone the VP8 Repository
git clone --depth 1 http://git.chromium.org/webm/libvpx.git

Ubuntu 8.04 git is out dated and doesn't support http method to clone the repository.

config

We need to support external config file with some documentation

Media-node process as service

Currently we restart media node by kill the media-node process.

We can make a system service for start/stop/restart the media-node.

Fix sqlite alter table error

Every time when media-node server start, it is throwing following sqlite error

Error: SQLITE_ERROR: duplicate column name: duration
Error: SQLITE_ERROR: duplicate column name: thumbs

Status API

It will return load info on media-node server

It can include:
number of video in queue,
Total length of videos is queue,
Number if CPU on system,
Load factor,
Some number indicating media-node-load based on some algorithm.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.