action-watermark

1.0.8 • Public • Published

action-watermark for Nexrenderer

Module for adding watermark to encoded video

Action: Add Watermark

Add watermark to your encoded video, You don't need to have ffmpeg installed on your system.

Installation

npm install action-watermark

Usage

When creating your render job provide this module as one of the postrender actions:

// job.json
{
  "actions": {
    "postrender": [
      {
        "module": "action-watermark",
        "input": "input.mp4",
        "watermark": "http://assets.stickpng.com/images/5cb78678a7c7755bf004c14c.png",
        "output": "output.mp4",
        "position": "center"
      }
    ]
  }
}

Information

  • output (required) is a path on your system where result will be saved to, can be either relative or absoulte path.
  • input (required) path of the video file you want to add video to, can be either relative or abosulte path. Defaults to current job output video file.
  • watermark (required) is url to a watermark
  • position (optional) can be top-left or top-right or bottom-left or bottom-right or center (Default)
  • onStart (optional) callback function runs on Start
  • onComplete (optional) callback function runs on Finished

Package Sidebar

Install

npm i action-watermark

Weekly Downloads

0

Version

1.0.8

License

ISC

Unpacked Size

7.02 kB

Total Files

5

Last publish

Collaborators

  • harshbhatia22
  • abdulbsit