N8n and Creatomate

Hello,

Anyone using n8n to create videos on Creatomate?
Im having troubles setting up the source files to the template.
I have got it to render the video but it wont loop the video to audio duration.

I have chatgpt’ed it for the last two days and i cant get it resolved.

Can someone help me?

I am new to N8N and still learning the ropes./

To generate a video using this JSON, you must send a POST request to the Creatomate API with the request body configured according to the provided JSON. Be sure to include your API key in the request headers.

Here’s an example of how to do it using curl:

curl -X POST https://api.creatomate.com/v1/renders \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
--data-raw '{
"template": {
"video": {
"source": "https://example.com/clip.mp4",
"loop": true
},
"audio": {
"source": "https://example.com/song.mp3"
}
}
}'

Replace YOUR_API_KEY with your Creatomate API key.

Parameter Explanation
*Video Element

  • source: Specifies the URL of the video file to use.
  • Loop: When set to true, indicates that the video should loop continuously until it reaches the full project length or coincides with another element, such as audio.

*Audio Element

  • Source: Specifies the URL of the audio file to use.
  • Duration: Can be set to “media” to have the audio element have the same length as the source audio file. This is useful when the audio length is unknown.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.