In this guide, we'll explore key concepts you need to understand to use the JSON2Video API effectively. These include the movie, scenes, and elements, which together define the structure and behavior of your videos.

What Is a Movie?

A movie is the final output of the JSON2Video API—a video file in MP4 format. Movies are composed of:

While using scenes is optional, they help organize your content and simplify template maintenance and updates.

Scenes and Their Role

Scenes play sequentially, one after the other, and cannot overlap. Each scene can contain multiple elements, such as images, text, or videos. Additionally, movies can have elements that play alongside scenes, which is useful for global elements like:

Understanding Elements

Elements are layered within scenes or directly within the movie. The stacking order determines their visibility:

This layering system follows HTML principles and differs from tools like Photoshop, where the order is reversed. Elements also have three key properties to control their visibility:

Duration Settings

JSON2Video provides flexibility with duration settings:

Example: Using the Container Duration

Let’s break down an example:

Streamlining Video Production

These concepts ensure you have precise control over how elements play and interact in your video. With JSON2Video, you don’t need to pre-calculate asset lengths—everything adjusts dynamically for seamless integration.