In this tutorial, we will learn to concatenate multiple videos with different types of GL transitions.
Prerequisites:
1) node js
2) ffmpeg-concat module
FFmpeg: Video Transitions Effects – Part #1
Step 1: In this step, we will write a script to concatenate multiple videos with different kinds of transitions.
Create a file with .js extension and use the following code:
const concat = require(‘ffmpeg-concat’)
concat({
output: ‘test.mp4’,
videos: [
‘file1.mp4’,
‘file2.mp4’,
‘file3.mp4’,
‘file4.mp4’
],
transitions: [
{
name: ‘squareswire’,
duration: 2500
},
{
name: ‘cube’,
duration: 2500
},
{
name: ‘angular’,
duration: 2500
}
]
})
Step 2: open cmd and run the following command:
node fileName.js
GL transitions list:
1) fade
2) fadegrayscale
3) circleopen
4) directionalwarp
5) directionalwipe
6) crosswarp
7) crosszoom
8) dreamy
9) squareswire
10)angular
11)radial
12)cube
13)swap
If you enjoyed this video tutorial and found it helpful, please consider giving it a thumbs up (like) 👍 and hitting that subscribe button ✅ if you haven’t already.