> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Splice videos together in Node.js (video tutorial)

[githublink]: https://github.com/cloudinary-community/cloudinary-examples/blob/main/examples/node-transformations-effects/video-splice.js

## Overview

This video tutorial teaches you how to splice two videos together using the Cloudinary Node.js SDK.

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.

> **TIP**: :title=View the code

You can find the code from this tutorial in [GitHub][githublink].
## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.### Introduction
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media1 :min=0 :sec=00 :player=cld} | To stitch two videos together, you can use Cloudinary's [video transformation capabilities](video_trimming_and_concatenating#concatenating_media).
|

### Install and configure the Node.js SDK
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media1 :min=0 :sec=20 :player=cld} | First, [install and configure the Cloudinary Node.js SDK](node_configuration_tutorial) in your Node.js app.
|

### Create the URL to concatenate the videos
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media1 :min=0 :sec=27 :player=cld} | Start with both of your videos [uploaded](upload_images) to Cloudinary. Then you can specify their public IDs in the code that creates the URL for the spliced videos.  For example, to splice the `samples/elephants` video with the `samples/sea-turtle` video:
|

```nodejs
const videoUrl = cloudinary.url('samples/elephants.mp4', {
  resource_type: 'video',
  transformation: [
    {
      flags: 'splice',
      overlay: 'video:samples:sea-turtle',
    },
    { flags: 'layer_apply' },
  ],
});
```

See the full code example in [GitHub](https://github.com/cloudinary-community/cloudinary-examples/blob/main/examples/node-transformations-effects/video-splice.js).

### Check the resulting URL
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media1 :min=1 :sec=51 :player=cld} | Open the resulting URL in a browser to see the sea-turtle video following straight on from the elephants video.
|

## Keep learning

> **READING**:
>
> * Learn about different ways to [trim and concatenate your videos](video_trimming_and_concatenating).

> * Discover more about [transforming videos](video_manipulation_and_delivery) and select the video filter in the [Transformation URL API reference](transformation_reference) to see all video transformations. 

> * Find out more about the capabilities of the Cloudinary [Node.js SDK](node_integration).

> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

#### If you like this, you might also like...

  
  
  
    Upload Videos in Node.js
    Upload videos to Cloudinary using the Node.js SDK 
  

  
  
  
    Video Transformations
    Build an e-commerce video showcasing products, in Node.js 
  

  
  
  
    Trim Videos in Node.js
    Trim videos using the Node.js SDK 
  

&nbsp;

&nbsp;Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
&nbsp;
