« Back to demos index

Encode a video, extract 8 thumbnails and store everything via SFTP

The demo below encodes a video, extracts thumbnails from it and stores both the encoded video and the thumbnails on your server.

Since this is a store robot, make sure to use templates! Templates are encrypted on our server, so you can safely provide your server username as opposed to showing them in your form's html code. » See full documentation

"steps": {
  "flash_encoding": {
    "use": ":original",
    "robot": "/video/encode",
    "preset": "flash",
    "width": 640,
    "height": 480
  },
  "extracted_thumbs": {
    "use": "flash_encoding",
    "robot": "/video/thumbs"
  },
  "store": {
    "robot": "/sftp/store",
    "use": ["flash_encoding", "extracted_thumbs"],
    "user": "not_the_correct_user",
    "host": "sftp-demo.transloadit.com",
    "path": "uploads/make/this/dir/if/you/!_like/${file.url_name}",
    "url_template": "http://sftp-demo.transloadit.com:81/make/this/dir/if/you/!_like/${file.url_name}"
  }
}
$(function() {
  $('form').transloadit({
    wait: true,
    autoSubmit: true
  });
});

The form

For demos we allow a maximum of 30MB.

This form is html5-multiupload enabled. If your browser supports it, you can select multiple files and execute the template with them.