Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
json2video-sdk
Advanced tools
Note: Updated for API v2.0
Create and edit videos: add watermarks, resize videos, create slideshows, add soundtrack, automate the creation of videos in multiple languages, add voice-over, add text animations.
JSON2Video is a video editing API that simplifies creating, editing and customising videos programmatically. Its dead simple approach, close to the web development mindset, makes it the ultimate solution for developers that want to create or customise videos in an automated way.
Additionally, the simple integration of real HTML5+CSS elements, the already built-in text animations and voice generation (TTS) converts JSON2Video in the best solution in its category.
Use cases
JSON2Video is free to use. Get your API Key at JSON2Video.com
The API Specification will provide you with all the details of the JSON payload and the endpoints.
For a step by step guide, read the Tutorial that will introduce you through all features with code examples.
The SDK has no external dependencies on other packages.
npm install json2video-sdk
JSON2Video makes video creation easy as a piece of cake:
const {Movie, Scene} = require("json2video-sdk");
async function main() {
// Create a new movie
let movie = new Movie;
// Set your API key
// Get your free API key at https://json2video.com
movie.setAPIKey(YOUR_API_KEY);
// Set movie quality: low, medium, high
movie.set("quality", "high");
// Generate a video draft
movie.set("draft", true);
// Create a new scene
let scene = new Scene;
// Set the scene background color
scene.set("background-color", "#4392F1");
// Add a text element printing "Hello world" in a fancy way (style 003)
// The element is 10 seconds long and starts 2 seconds from the scene start
scene.addElement({
type: "text",
style: "003",
text: "Hello world",
duration: 10,
start: 2
});
// Add the scene to the movie
movie.addScene(scene);
// Call the API and render the movie
let render = await movie.render();
console.log(render);
// Wait for the movie to finish rendering
await movie
.waitToFinish((status) => {
console.log("Rendering: ", status.movie.status, " / ", status.movie.message);
})
.then((status) => {
console.log("Response: ", status);
console.log("Movie is ready: ", status.movie.url);
})
.catch((err) => {
console.log("Error: ", err);
});
}
main();
This is the resulting video:
FAQs
SDK for creating videos programmatically using JSON2Video API
The npm package json2video-sdk receives a total of 11 weekly downloads. As such, json2video-sdk popularity was classified as not popular.
We found that json2video-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.