Archived from the Transloadit support forum. Originally posted on March 11, 2011; details may be outdated, see our docs for current behavior. Original thread
Here is my template:
{
"steps": {
"image_thumb": {
"use": ":original"
, "robot": "/image/resize"
, "correct_gamma": true
, "width": 232
, "resize_strategy": "fit"
},
"image_full": {
"use": ":original"
, "robot": "/image/resize"
, "strip": true
, "correct_gamma": true
, "width": 640
, "resize_strategy": "fit"
, "watermark_url": "http://s3.amazonaws.com/path/to/image"
, "watermark_position": "bottom-right"
},
"video_thumbs": {
"use": ":original"
, "robot": "/video/thumbs"
, "width": 232
, "resize_strategy": "fit"
},
"video_encode": {
"use": ":original"
, "robot": "/video/encode"
, "preset": "iphone"
, "realtime": "true"
, "width": 1280
, "resize_strategy": "fit"
, "ffmpeg": {
"b": "5000k"
}
, "watermark_url": "http://s3.amazonaws.com/path/to/image"
, "watermark_position": "bottom-right"
},
"image_export": {
"use": ["image_thumb", "image_full"]
, "robot": "/s3/store"
, "key": "REDACTED"
, "secret": "REDACTED"
, "bucket": "my_image_bucket"
, "path": "${unique_prefix}"
},
"video_export": {
"use": ["video_thumbs", "video_encode"]
, "robot": "/s3/store"
, "key": "REDACTED"
, "secret": "REDACTED"
, "bucket": "my_video_bucket"
, "path": "${unique_prefix}"
}
}
}
It works fine for images. With videos the video_thumbs are created and returned in the results object, but video_encode is missing from the results. Seems like it doesn’t wait for this step. The message is “The assembly is currently being executed.”
Everything works perfectly in the test suite.
Any ideas?