Convert video clips to different size formats easily
ClipNShip is a simple library for use in converting videos into a size format that is compatible with whatever you need (landscape to portrait by default). Entirely client-side, ClipNShip ensures there is no need to transfer any data between users and a server.
ClipNShip works in a system called "layers". The consumer uses the input media as a base and stacks layers on top of each other to create different effects and media sizes. This allows full control over how the result looks.
Install through npm for use in ES modules
npm install clip-n-ship
import ClipConverter from "clip-n-ship";
const converter = new ClipConverter(videoURL);
Or through CDN
<script src="https://cdn.jsdelivr.net/gh/mitchwadair/clip-n-ship@v1.2.0/dist/clipnship.min.js"></script>
Having that tag will expose the ClipConverter
class to the global scope for your use:
const converter = new ClipConverter(videoURL);
For more info on how to use ClipNShip, check out the docs in this repo.
Want to contribute to ClipNShip? Check out the contribution guidelines to see how.
If you would like to help support maintaining ClipNShip, consider sponsoring me on GitHub Sponsors. You can also give a one-time donation through PayPal.