FCC - Cheatsheet



Link to JSON2VIDEO:

https://JSON2video.com


URL for test image

https://assets.json2video.com/assets/images/licoln.jpg


URL for test video

https://assets.json2video.com/assets/videos/new-york-01.mp4


Link to n8n:

https://n8n.io


URL for JSON2VIDEO API:

https://api.json2video.com/v2/movies


n8n HTTP node - JSON Body Content:


{
     "comment": "Using a template ID",
     "template": "xxxxxxx",
     "variables": {
         "voice_text_001": "{{ $json.voice_text_001 }}",
         "image_url_001": "{{ $json.image_url_001 }}",
         "video_url_001": "{{ $json.video_url_001 }}"
    }
}
  



Link to all complementary Microsoft Azure voices included in JSON2Video subscription:

https://json2video.com/ai-voices/azure/


Link to documentation for the JSON2Video subtitle (captions) element

https://json2video.com/docs/tutorial/subtitle-elements/


JSON2Video – Full JSON Template:


{
  "id": "template_001",
  "comment": "My First Movie Template",
  "resolution": "custom",
  "width": 1080,
  "height": 1920,
  "fps": 25,
  "cache": true,
  "quality": "high",
  "draft": false,
  "scenes": [
    {
      "condition": "{{voice_text_001 or video_url_001}}",
      "id": "scene_001",
      "comment": "Scene 1",
      "elements": [
        {
          "condition": "{{voice_text_001}}",
          "id": "voice_001_internal",
          "type": "voice",
          "model": "azure",
          "text": "{{voice_text_001}}",
          "voice": "en-US-AvaMultilingualNeural",
          "start": 0.15
        },
        {
          "condition": "{{image_url_001}}",
          "id": "image_001",
          "type": "image",
          "src": "{{image_url_001}}",
          "width": null,
          "height": 1920,
          "x": 0,
          "y": 0,
          "position": "center-center",
          "zoom": 5
        },
        {
          "condition": "{{video_url_001 and voice_text_001}}",
          "id": "video_001",
          "type": "video",
          "src": "{{video_url_001}}",
          "width": null,
          "height": 1920,
          "x": 0,
          "y": 0,
          "position": "center-center",
          "duration": -2,
          "muted": true
        },
        {
          "condition": "{{video_url_001 and !voice_text_001}}",
          "id": "video_001",
          "type": "video",
          "src": "{{video_url_001}}",
          "width": null,
          "height": 1920,
          "x": 0,
          "y": 0,
          "position": "center-center",
          "duration": -1
        }
      ]
    },
    {
      "condition": "{{voice_text_002 or video_url_002}}",
      "id": "scene_002",
      "comment": "Scene 2",
      "elements": [
        {
          "condition": "{{voice_text_002}}",
          "id": "voice_002_internal",
          "type": "voice",
          "model": "azure",
          "text": "{{voice_text_002}}",
          "voice": "en-US-AvaMultilingualNeural",
          "start": 0.15
        },
        {
          "condition": "{{image_url_002}}",
          "id": "image_002",
          "type": "image",
          "src": "{{image_url_002}}",
          "width": null,
          "height": 1920,
          "x": 0,
          "y": 0,
          "position": "center-center",
          "zoom": 5
        },
        {
          "condition": "{{video_url_002 and voice_text_002}}",
          "id": "video_002",
          "type": "video",
          "src": "{{video_url_002}}",
          "width": null,
          "height": 1920,
          "x": 0,
          "y": 0,
          "position": "center-center",
          "duration": -2,
          "muted": true
        },
        {
          "condition": "{{video_url_002 and !voice_text_002}}",
          "id": "video_002",
          "type": "video",
          "src": "{{video_url_002}}",
          "width": null,
          "height": 1920,
          "x": 0,
          "y": 0,
          "position": "center-center",
          "duration": -1
        }
      ]
    }
  ],
  "elements": [
    {
      "id": "subtitles",
      "type": "subtitles",
      "settings": {
        "style": "classic",
        "box-color": "#000000",
        "word-color": "#02FB23",
        "shadow-color": "#000000",
        "font-family": "Luckiest Guy",
        "font-size": 180,
        "line-color": "#FFFFFF",
        "outline-color": "#000000",
        "outline-width": 10,
        "shadow-offset": 0,
        "position": "center-center",
        "max-words-per-line": 4
      },
      "language": "en-US"
    }
  ],
  "variables": {
    "voice_text_001": "This is scene number 1",
    "image_url_001": "",
    "video_url_001": "https://assets.json2video.com/assets/videos/new-york-01.mp4",
    "voice_text_002": "This is scene number 2",
    "image_url_002": "https://assets.json2video.com/assets/images/licoln.jpg",
    "video_url_002": ""
  }
}