> ## Documentation Index
> This page is part of the Image and Video APIs product. Fetch the complete documentation index for Image and Video APIs at: https://cloudinary.com/documentation/llms-image-and-video-apis.txt?referrer=docpage and then use it to discover all relevant pages before exploring further.
> If your task extends beyond this product, fetch the top-level index covering all Cloudinary products and topics at: https://cloudinary.com/documentation/llms.txt?referrer=docpage

# 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.
{videoTranscript:publicId=training/Splicing_Videos_Node}

> **View the code :custom-icon='https://cloudinary-res.cloudinary.com/image/upload/v1778586152/docsite/brand-assets/github.svg' :invert-icon**:
>
> 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}|  | 
| --- | --- |
| | To stitch two videos together, you can use Cloudinary's [video concatenation options](video_concatenation).
|

### Install and configure the Node.js SDK
{table:class=tutorial-bullets}|  | 
| --- | --- |
| | 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}|  | 
| --- | --- |
| | 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}|  | 
| --- | --- |
| | 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_in_node_tutorial)

Upload videos to Cloudinary using the Node.js SDK

[Video Transformations](video_transformations_tutorial)

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

[Trim Videos in Node.js](trim_videos_nodejs_tutorial)

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;
