Skip to content

A node.js wrapper for ffmpeg. Made for https://github.com/rtCamp/buddypress-media but can be used in any project which needs FFMPEG

Notifications You must be signed in to change notification settings

FunnyRyan/media-node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

media-node

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

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.

About

A node.js wrapper for ffmpeg. Made for https://github.com/rtCamp/buddypress-media but can be used in any project which needs FFMPEG

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 64.2%
  • JavaScript 34.8%
  • Dockerfile 1.0%