https://github.com/donkeyclip/video-renderer
This is the library that can convert your donkeyclip into an mp4 clip
https://github.com/donkeyclip/video-renderer
donkeyclip ffmpeg video
Last synced: 20 days ago
JSON representation
This is the library that can convert your donkeyclip into an mp4 clip
- Host: GitHub
- URL: https://github.com/donkeyclip/video-renderer
- Owner: donkeyclip
- Created: 2021-02-23T18:52:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-15T19:16:08.000Z (6 months ago)
- Last Synced: 2024-11-15T20:22:06.276Z (6 months ago)
- Topics: donkeyclip, ffmpeg, video
- Language: JavaScript
- Homepage:
- Size: 481 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# 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](#contribute)
** Note: ffmpeg is required to be installed in your system. **
To test just run your project
```bash
git clone [email protected]: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
| argument | type | default | description |
| -------- | --------------- | ---------------------------------------------------------------------- | ------------------------------------- |
| -i | string | null | The unique donkey clip id as an Input |
| -o | string [*.mp4] | ./out.mp4 | The Output file path |
| -r | integer | 24 | FrameRate of the output video |
| -q | integer [0-100] | 80 | Quality of the video |
| -w | integer | 720 | Width of the video |
| -h | integer | 640 | Height of the video |
| -s | integer | 0 | Start milisecond of the donkey clip |
| -e | integer | - | End milisecond of the donkey clip |
| -c | integer | 1 | Number of cpus to use |
| -u | string | The 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](https://opensource.org/licenses/MIT)
[
](https://donkeyclip.com)