The /video/concat Robot

Transloadit offers a variety of features to reduce video size while maintaining quality, as well as add effects like watermarks.

The /video/concat Robot concatenates several videos together.

Parameters

Name Type Default Description
preset String "flash" Performs conversion using pre-configured settings. If you specify your own FFmpeg parameters using the Robot's ffmpeg parameter and you have not specified a preset, then the default "flash" preset is not applied. This is to prevent you from having to override each of the flash preset's values manually. For a list of video presets, see video presets.

Live demos

Our /video/concat Robot can be used in combination with other Robots, to create powerful workflows unique to your use case.
Here are a few example scenarios, and the required the Assembly Instructions to implement them.
You can also try demos of these examples right here, live on our website.

Concatenate video files

{
  "steps": {
    "preroll_imported": {
      "robot": "/http/import",
      "result": true,
      "url": "http://demos.transloadit.com/inputs/waves10.mp4"
    },
    "preroll_resized": {
      "use": ["preroll_imported"],
      "robot": "/video/encode",
      "result": true,
      "background": "#000000",
      "ffmpeg_stack": "v3.3.3",
      "height": 270,
      "preset": "ipad-high",
      "resize_strategy": "pad",
      "width": 480
    },
    "original_resized": {
      "use": [":original"],
      "robot": "/video/encode",
      "result": true,
      "background": "#000000",
      "ffmpeg_stack": "v3.3.3",
      "height": 270,
      "preset": "ipad-high",
      "resize_strategy": "pad",
      "width": 480
    },
    "concatenated": {
      "use": {"steps":[{"name":"original_resized", "as":"video_1"},{"name":"preroll_resized", "as":"video_2"}]},
      "robot": "/video/concat",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "exported": {
      "use": ["preroll_imported", "preroll_resized", "original_resized", "concatenated", ":original"],
      "robot": "/s3/store",
      "bucket": "demos.transloadit.com",
      "bucket_region": "us-east-1",
      "key": "YOUR_AWS_KEY",
      "secret": "YOUR_AWS_SECRET"
    }
  }
}

Join multiple videos sharing one audio track

{
  "steps": {
    "resized": {
      "use": [":original"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "joined": {
      "use": {"steps":[{"name":"resized", "fields":"myfile_0", "as":"video_1"},{"name":"resized", "fields":"myfile_1", "as":"video_2"},{"name":"resized", "fields":"myfile_2", "as":"video_3"}],"bundle_steps":true},
      "robot": "/video/concat",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "merged": {
      "use": {"steps":[{"name":":original", "as":"audio"},{"name":"joined", "as":"video"}]},
      "robot": "/video/merge",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "shortened10": {
      "use": ["merged"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg": {"ss":"00:00:0.0", "t":13},
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "shortened10_watermarked": {
      "use": ["shortened10"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high",
      "watermark_position": "bottom-right",
      "watermark_size": "25%",
      "watermark_url": "http://demos.transloadit.com/inputs/tllogo-white-alpha-1612p.png"
    },
    "shortened25": {
      "use": ["merged"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg": {"ss":"00:00:0.0", "t":27},
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "shortened25_watermarked": {
      "use": ["shortened25"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high",
      "watermark_position": "bottom-right",
      "watermark_size": "25%",
      "watermark_url": "http://demos.transloadit.com/inputs/tllogo-white-alpha-1612p.png"
    },
    "shortened50": {
      "use": ["merged"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg": {"ss":"00:00:0.0", "t":49},
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high"
    },
    "shortened50_watermarked": {
      "use": ["shortened50"],
      "robot": "/video/encode",
      "result": true,
      "ffmpeg_stack": "v3.3.3",
      "preset": "ipad-high",
      "watermark_position": "bottom-right",
      "watermark_size": "25%",
      "watermark_url": "http://demos.transloadit.com/inputs/tllogo-white-alpha-1612p.png"
    },
    "exported": {
      "use": ["resized", "joined", "merged", "shortened10", "shortened25", "shortened50", "shortened10_watermarked", "shortened25_watermarked", "shortened50_watermarked", ":original"],
      "robot": "/s3/store",
      "bucket": "demos.transloadit.com",
      "bucket_region": "us-east-1",
      "key": "YOUR_AWS_KEY",
      "secret": "YOUR_AWS_SECRET"
    }
  }
}

Our /video/concat robot blog posts

Over the years we wrote the following posts about Our /video/concat robot on our blog:

Did you know?

You can easily combine Robots to create powerful workflows, unique to your business.
This is the power of Transloadit.