@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β
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