curl --location --request POST 'https://dev.your-api-server.com/v1/video/render' \
--header 'Authorization: {{access_token}}' \
--header 'X-Pictory-User-Id: {{X-Pictory-User-Id}}' \
--header 'Content-Type: application/json' \
--data-raw '//Transcription data comes from prior transcription calls
//Auto-captured in the Postman environment
//View capture method by visiting the "Tests" portion of the call
//Check stored transcription data in Postman environment
//See Pictory Web App Storyboard for all possible setting values
{
"audio": {}, //Not needed because we have audio from the video file in this API flow. However, this would be used in the Text to Video API flow.
"output": { //Settings for the video file output
"name": "{{file_name}}", //Name of the output video file
"description": "American and Canadian president discuss countries relationship",
"format": "mp4", //Supports only mp4
"title": "American and Canadian Relations",
"width": 1280, // 1920x1080 is 1080p; 1280x720 is 720p
"height": 720
},
"scenes": [
{
"background": {
"src": [
{
"url": "https://pictory-api-dev.s3.us-east-2.amazonaws.com/556d6b41-04b8-4fe1-abbe-949d08b6c104/VideoEditDemoInput.mp4", //Background Video or Image URL. Demo video: https://pictory-api-dev.s3.us-east-2.amazonaws.com/556d6b41-04b8-4fe1-abbe-949d08b6c104/VideoEditDemoInput.mp4
"asset_id": "", //Only used in Text to Video autogenerated visuals
"type": "video", //Video or image
"library": "", //3rd party stock visual library
"mode": "", //Crop or fit
"start": 4.14, //For video, start of the video segment
"end": 17.26, //For video, end of the video segment
"mute": false //Mute video sound. Usually true for Text to Video API flows
}
],
"bg_animation": {
"animation": "" //For 3rd party images. Animations: pan-up/down/right/left, zoom-in
}
},
"time": 13.12, //Scene duration in seconds
"keywords": [], //Keywords to highlight in video the text
"sub_scenes": [ //Each scene contains a sub-scene
{
"time": 3.7, //Sub-scene text duration in seconds
"location": {
"center_x": 640, //Text'\''s center x-coordinate in video
"end_y": 669.5999999999999 //Text'\''s end y-coordinate in video
},
"text_lines": [ //Settings for subtitle display
{
"text": "We just completed a very productive meeting,",
"text_animation": [ //Animations for the text
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text_bg_animation": [ //Background text animations
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
]
}
],
"subtitle": "",
"font": { //Subtitle font. See {{PictoryApiBaseUrl}}/video/storyboard/fonts for options
"name": "Arial.ttf",
"size": 32,
"line_spacing": 1.2,
"color": "rgba(255,255,255,255)", //Accepts rgba or hex color
"backcolor": "rgba(17,17,17,153)", //Accepts rgba or hex color
"keycolor": "rgba(226,226,170,255)", //Accepts rgba or hex color
"textShadowColor": "rgba(255,255,255,1)", //Accepts rgba or hex color
"textShadowWidthFr": 0,
"line_height": 55.328,
"case": null,
"decoration": [],
"fullWidth": false
}
},
{
"time": 2.58,
"location": {
"center_x": 640,
"end_y": 669.5999999999999
},
"text_lines": [
{
"text_animation": [ //Animations for the text
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text_bg_animation": [ //Background text animations
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text": "although I regret to inform you that we still have not"
}
],
"subtitle": "",
"font": { //Subtitle font. See {{PictoryApiBaseUrl}}/video/storyboard/fonts for options
"name": "Arial.ttf",
"size": 32,
"line_spacing": 1.2,
"color": "rgba(255,255,255,255)", //Accepts rgba or hex color
"backcolor": "rgba(17,17,17,153)", //Accepts rgba or hex color
"keycolor": "rgba(226,226,170,255)", //Accepts rgba or hex color
"textShadowColor": "rgba(255,255,255,1)", //Accepts rgba or hex color
"textShadowWidthFr": 0,
"line_height": 55.328,
"case": null,
"decoration": [],
"fullWidth": false
}
},
{
"time": 4.56,
"location": {
"center_x": 640,
"end_y": 669.5999999999999
},
"text_lines": [
{
"text_animation": [ //Animations for the text
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text_bg_animation": [ //Background text animations
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text": "reached agreement on hockey uh, but it is not"
}
],
"subtitle": "",
"font": { //Subtitle font. See {{PictoryApiBaseUrl}}/video/storyboard/fonts for options
"name": "Arial.ttf",
"size": 32,
"line_spacing": 1.2,
"color": "rgba(255,255,255,255)", //Accepts rgba or hex color
"backcolor": "rgba(17,17,17,153)", //Accepts rgba or hex color
"keycolor": "rgba(226,226,170,255)", //Accepts rgba or hex color
"textShadowColor": "rgba(255,255,255,1)", //Accepts rgba or hex color
"textShadowWidthFr": 0,
"line_height": 55.328,
"case": null,
"decoration": [],
"fullWidth": false
}
},
{
"time": 2.28,
"location": {
"center_x": 640,
"end_y": 669.5999999999999
},
"text_lines": [
{
"text_animation": [ //Animations for the text
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text_bg_animation": [ //Background text animations
{
"animation": "", //Animations: expand-out, slide-in-left, fade-in, slide-in-left, slide-in-right
"speed": 1 //Text animation speed. Percentage range from 0-2
}
],
"text": "interfering with the rest of our bilateral relationship."
}
],
"subtitle": "",
"font": { //Subtitle font. See {{PictoryApiBaseUrl}}/video/storyboard/fonts for options
"name": "Arial.ttf",
"size": 32,
"line_spacing": 1.2,
"color": "rgba(255,255,255,255)", //Accepts rgba or hex color
"backcolor": "rgba(17,17,17,153)", //Accepts rgba or hex color
"keycolor": "rgba(226,226,170,255)", //Accepts rgba or hex color
"textShadowColor": "rgba(255,255,255,1)", //Accepts rgba or hex color
"textShadowWidthFr": 0,
"line_height": 55.328,
"case": null,
"decoration": [],
"fullWidth": false
}
}
],
"sentences": [ //Scene sentences, with the time duration in seconds for creating subtitles files.
{
"time": 3.7, //Duration in seconds
"text": "We just completed a very productive meeting,"
},
{
"time": 2.58, //Duration in seconds
"text": "although I regret to inform you that we still have not"
},
{
"time": 4.56, //Duration in seconds
"text": "reached agreement on hockey uh, but it is not"
},
{
"time": 2.28, //Duration in seconds
"text": "interfering with the rest of our bilateral relationship."
}
],
"music": true, //Enable background music
"tts": true, //Enable AI Text to Speech
"subtitle": true //Displays subtitles for scene
}
]
}'