Discussions

Ask a Question
Back to All

if I put the rectangle parameter when creating a clip video, I get a zero-sized video which have nothing

https://d-id-clips-prod.s3.us-west-2.amazonaws.com/auth0%7C6462f42b46b94bbe2adda812/clp_3SoocBlhmWrMcCGe8NZw8/amy-jcwCkr1grs.mp4?AWSAccessKeyId=AKIA5CUMPJBIJ7CPKJNP&Expires=1684316681&Signature=UchtI%2BeucUOSVuHnNIhMHQDC66Q%3D&X-Amzn-Trace-Id=Root%3D1-64635089-601645804f49186e6b2302bb%3BParent%3D06f0dc41555f4ad6%3BSampled%3D0%3BLineage%3D84e41ec0%3A0

here's the video generated.

curl --request POST
--url https://api.d-id.com/clips
--header 'accept: application/json'
--header 'authorization: '
--header 'content-type: application/json'
--data '
{
"driver_id": "uM00QMwJ9x",
"script": {
"type": "text",
"provider": {
"type": "microsoft",
"voice_id": "en-US-JennyNeural"
},
"input": "this is just for example"
},
"config": {
"result_format": "mp4"
},
"presenter_config": {
"crop": {
"type": "rectangle",
"rectangle": {
"bottom": 200,
"right": 200,
"left": 0,
"top": 0
}
}
},
"presenter_id": "amy-jcwCkr1grs"
}
'

above is the parameter I used to generate video. can you help me?