Do you want to create a MP4 video from JSON?

JSON2Video API is the ultimate solution for automating video processes in your app or workflows.

The video editing API comes with a collection of awesome components to get you started with video creation:

Examples

A simple example to get you started with JSON to MP4 video creation:

Overlay a "Hello World" text to solid background

{
    "width": 640,
    "height": 360,
    "draft": false,
    "scenes": [
        {
            "background-color": "#4392F1",
            "elements": [
                {
                    "type": "text",
                    "style": "008",
                    "text": "Hello world",
                    "settings": {
                        "color": "white",
                        "font-size": "10vw",
                        "font-family": "Bebas Neue"
                    },
                    "duration": 5,
                    "cache": false
                }
            ]
        }
    ]
}
Convert JSON to video

Check out more examples.

Online JSON to video converter

Use our online JSON to video editor to convert your JSON to a video.

JSON to video converter

The editor allows you to easily edit and render your JSON into a video. Once you are done, the editor provides you with the equivalent PHP or NodeJS code to create your own video automation script.

How to convert JSON to MP4

You can create a MP4 video from a JSON snippet by following these steps:

1. Compose a JSON snippet

The JSON defines a Movie object, with Scenes and Elements. Read the API specification and the Tutorial to learn how to create a JSON snippet.

2. Submit your JSON to the API

Before start rendering you will need to get an API key. Enter your API key in the editor and click the "Render" button.

3. Get your video

Wait a few seconds for the video to be generated. Once done, you can preview your video in the editor and also get a link to your video.

Why use a video editing API?

You can use the video editing API for several use cases:

Published on June 28th, 2022

Author
David Bosch
David Bosch David is an experienced engineer, now collaborating with JSON2Video.