Programmable Media

Splice videos together in Node.js (video tutorial)

Last updated: Sep-12-2024

Overview

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

Video tutorial


View the code
You can find the code from this tutorial in GitHub.

Tutorial contents

This tutorial presents the following topics. Click a timestamp to jump to that part of the video.

Introduction

Jump to this spot in the video  0:00 To stitch two videos together, you can use Cloudinary's video transformation capabilities.

Install and configure the Node.js SDK

Jump to this spot in the video  0:20 First, install and configure the Cloudinary Node.js SDK in your Node.js app.

Create the URL to concatenate the videos

Jump to this spot in the video  0:27 Start with both of your videos uploaded 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:

See the full code example in GitHub.

Check the resulting URL

Jump to this spot in the video  1:51 Open the resulting URL in a browser to see the sea-turtle video following straight on from the elephants video.

Keep learning

Related topics

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

 

Cloudinary Academy

 

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.

 

✔️ Feedback sent!

Rate this page: