Error 400 - no params field provided

No idea what I’ve done wrong here (probably an easy fix!). Hoping the community could assist. For context, I’m trying to upload an audio and video file for merging while the video loops until the audio finishes.

{
“steps”: {
“:original”: {
“robot”: “/upload/handle”
},
“imported_video”: {
“robot”: “/http/import”,
“url”: “https:…”
},
“imported_audio”: {
“robot”: “/http/import”,
“url”: “{https:…}”
},
“looped_video”: {
“robot”: “/video/encode”,
“use”: “imported_video”,
“ffmpeg_stack”: “v6.0.0”,
“preset”: “empty”,
“ffmpeg”: {
“input_options”: {
“stream_loop”: “-1”
}
}
},
“merged_video”: {
“robot”: “/video/merge”,
“use”: [
{
“name”: “looped_video”,
“as”: “video”
},
{
“name”: “imported_audio”,
“as”: “audio”
}
],
“result”: true,
“ffmpeg_stack”: “v6.0.0”,
“ffmpeg”: {
“shortest”: null
}
}
}
}

Hey there and welcome to Transloadit!

Please remove your “looped_video” step and try with this version of the “merged_video” step:

“merged_video”: {
“use”: [
{
“name”: “imported_video”,
“as”: “video”
},
{
“name”: “imported_audio”,
“as”: “audio”
}
],
“robot”: “/video/merge”,
“result”: true,
“ffmpeg_stack”: “v6.0.0”,
“preset”: “web/mp4/1080p”,
“ffmpeg”: {
“input_options”: {
“stream_loop”: “-1”
},
“t”: “${audio.meta.duration}”
}
}

This assumes that the audio file has the longer duration compared to the video. Please let me know if this is always the case. :slight_smile:

Kind regards,
Tim

All fixed, thank you