I am trying to stitch two clips with AWS Elastic Transcoder CLI, but I am getting error.
My command : aws elastictranscoder create-job --pipeline-id 158182938949-p2e73l --inputs Key=movie1.mp4,movie2.mp4 --outputs Key=complete-mov.mp4,PresetId=159474848914704-fupili,Watermarks=[{PresetWatermarkId=TopLeft,InputKey=Untitled-4png.png}]
I am getting this error :
Parameter validation failed: Invalid type for parameter Inputs[0].Key, value: ['MEYD-001.mp4', 'intro.mp4'], type: <class 'list'>, valid types: <class 'str'>
How can I ADD Multiple inputs[videos] in AWS Elastic transcoder CLI ? AWS docs is lacking this.
Best Regards.
@akamai - i was wrong. ET does allow you to stitch clips in a single operation. I think your issue is your using the shortcut syntax and not passing a JSON array.
Try updating your command from
to
You may need some additional parameters to get the desired result. You can use the AWS command to generate a template to guide you like this:
aws elastictranscoder create-job --generate-cli-skeleton
. That will output a JSON string with every available property of the command. If you look at the Inputs section below, its defined as an array:"Inputs": [
.