/vidmerger

Primary LanguageJavaScript

vidmerger instructions

  1. Set your GOOGLE_APPLICATION_CREDENTIALS environment variable to the file path of Vidmerger-af716ef2ceaf.json
  2. cd into root directory and run npm install
  3. run node server.js and you should see the message Running vidmerger!
  4. make a post request to 127.0.0.1:3000/merge with application/json formatted post data with links specified as so:
{
	"remote": 1, (to create a remote file and link, otherwise don't include this field)
	"token": "secret123",
	"links": [
		"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4",
		"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerEscapes.mp4",
    "etc..."
	]
}
  1. After your request returns, the link will be under the 'link' field in the response body.