How to extract thumbnails and upload it to amazon and upload video to amazon simultaneously?

Archived from the Transloadit support forum. Originally posted on April 9, 2011; details may be outdated, see our docs for current behavior. Original thread

I thought that following template will solve my issue, but it appears that it is not it. How can I do that?

"steps": {
    "export": {
      "robot": "/s3/store",
      "key": "x",
      "secret": "x",
      "bucket": "x"
    },
    "flash_encoding":{
      "use":":original",
      "robot":"/video/encode",
      "preset":"flash",
      "width":640,
      "height":480
    },
    "extracted_thumbs":{
      "use":"flash_encoding",
      "robot":"/video/thumbs"
    },
    "export": {
      "robot": "/s3/store",
      "key": "x",
      "secret": "x",
      "bucket": "x"
    }
}

Hi,

I think what you’re looking for is our "use" parameter. It allows you to specify which steps will be used as the input for your "export" step. So in your last export step, you probably just want to add:

"use: ["flash_encoding", "extracted_thumbs"]

You should also remove the first one, because you can’t have two items with the same name in JSON. The later one simply overwrites the former.

Let me know if that helps!

Yes, that helps, thx!

Closing this for now.

Kind regards,
Tim