1.4.2 • Published 3 years ago

@donkeyclip/video-renderer v1.4.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

video-renderer

This is the library that can convert your donkey clip into an mp4 clip. It's an ongoing opensource project, currently on alpha version. We are happy to have new developers to contribute. Feel free to open issues or create a new pull request. See how to contribute

To test just run your project

git clone git@github.com:donkeyclip/video-renderer.git
npm i
npm run render -- -u https://staging-api.donkeyclip.com/v1/embed/2QBwp2qrbRqdPfDDKYfXKa -e 4000

You must provide a url or an id of a donkeyclip. See the options bellow. Also the end millisecond is mandatory.

Options

argumenttypedefaultdescription
-istringnullThe unique donkey clip id as an Input
-ostring *.mp4./out.mp4The Output file path
-rinteger24FrameRate of the output video
-qinteger 0-10080Quality of the video
-winteger720Width of the video
-hinteger640Height of the video
-sinteger0Start milisecond of the donkey clip
-einteger-End milisecond of the donkey clip
-cinteger1Number of cpus to use
-ustringThe url of a donkeyclip e.g. https://api.donkeyclip.com/embed/

Contribute

Currently we are confident that you can successfully render to mp4 any clips that do not use media (images, videos, audio). Some of our next steps are:

  1. Ensure that all images are loaded before taking screenshots of a millisecond
  2. Ensure that all videos are loaded before taking screenshots of a millisencond
  3. Support exporting audio

License

MIT License