@revideo/ffmpeg

concatenateMedia()

The concatenateMedia() function lets you concatenate video or audio files.

Example Usage

import {concatenateMedia} from '@revideo/ffmpeg';

const audios = ['audio-0.wav', 'audio-1.wav', 'audio-2.wav'];
concatenateMedia(audios, 'audio.wav');

Arguments

files

List of strings containing paths to your input files.

outputFile

Path to where the output file will be saved.

mergeAudioWithVideo()

The mergeAudioWithVideo() function lets you merge audio with video files

Example Usage

import {mergeAudioWithVideo} from '@revideo/ffmpeg';

mergeAudioWithVideo('audio.wav', 'visuals.mp4', 'out.mp4');

Arguments

audioPath

Path to the audio file

videoPath

Path to the video file

outputPath

Path to where the merged output file will be saved.

Last updated