No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
api.go
commands.go
env.go
errorhandling.go
filehandling.go
loghandling.go
main.go
misc.go
myjob.go
run.sh

README.md

coreingo

Basic implementation of ffmpeg CGI with webservices interface.


Deploy :

Install go 1.6

go get -u github.com/kataras/iris & go get -u github.com/FaXaq/gjp (only dependencies) and then go get github.com/FaXaq/coreingo

Launch the script run.sh to run.


API :

  • POST /jobs To create job :
    • command command to execute (extract-audio and convert)
    • fromFile path to file (ex: /home/user/Downloads/toto.mp4)
    • toFile name & ext for the output file (ex: giphy.mkv)
    • return :
{
  "job": {
    "id": "9168fb1c-d488-4bdb-a0c8-ef97617bcf33",
    "name": "<path_to_file>/guitar to test.mp3",
    "status": "queued",
    "start": "0001-01-01T00:00:00Z",
    "end": "0001-01-01T00:00:00Z"
  }
}
  • GET /jobs/search list of job info
    • id job id
    • return :
{
   "id": "9168fb1c-d488-4bdb-a0c8-ef97617bcf33",
   "name": "<path_to_file>/guitar to test.mp3",
   "status": "proceeded",
   "start": "2016-03-04T12:37:20Z",
   "end": "0001-01-01T00:00:00Z"
}
  • GET /jobs/progress get job progress
    • id job id
    • return :
{
   "percentage": 0.052427342648
}

That's all folks