If you have multiple videos and a source audio that you need to sync it all to to get one single media file, use AVflow's multicam sync service.

1. Add "Multi-cam Sync" step to the Flow

2. Setup Webhook trigger to pass necessary data to the flow

Videos: is the array that contains all the videos in the correct order (i.e. order them according to the time they were recorded)

Audio: is the link to access the source audio on S3

3. Setup Multi-cam Sync options

Action: Select Sync by waveform

Videos: The source videos

Data structure: Describe the structure of the array item so the service can get the data. Currently the key is not editable that means the input array must follow predefined format:

[{
"url": "https://my-bucket.s3.us-west-2.amazonaws.com/video1.mts"
"start": 0,
"end": 120,
},
{
"url": "https://my-bucket.s3.us-west-2.amazonaws.com/video2.mts"
"start": 0,
"end": 220,
}
]

url: The url to accessible video file

Start, End: the start and end time of the video. By setting start to 0 and end to video duration to includes the whole video to the final video or just include small part of the video by setting the start and end time. For the case the input videos overlapped each other depend on the order of the video in the array, and the later video may overlapped the previous in the final video.

4. Add "Transfer to Storage" step to save the resulting synced video. Save the Flow. Enable it. Then trigger the Flow and check the log for the result.

Did this answer your question?