« Back to demos index

Encode a video into flash and mov

The following demo shows how you can run several different encoding jobs for the uploaded videos using the /video/encode robot. For the first encoding we use the flash preset. For the second one we supply custom ffmpeg parameters to encode into mov. » See full documentation

"steps": {
  "flash": {
    "robot": "/video/encode",
    "preset": "flash",
    "width": 854,
    "height": 480
  },
  "mov": {
    "use": ":original",
    "robot": "/video/encode",
    "ffmpeg": {
       "f": "mov",
       "ar": 44100,
       "vcodec": "libx264",
       "vpre": "medium",
       "acodec": "libmp3lame",
       "crf":25
    }
  }
}
$(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.