align_media 0.1.0 align_media: ^0.1.0 copied to clipboard
Aligns video and audio files based on the sound tracks.
usage #
align
: Cross-correlate media files using their audio tracks #
final result = await AlignMedia.align([path1, path2]);
See the reference for the fields of AlignResult
.
replaceAudio
: Replace the audio track in a video with a given audio, auto-align #
await AlignMedia.replaceAudio(
audioPath: 'audio.mp3',
videoPath: 'video.mov',
outputPath: 'replaced.mov',
);