Synchronize multimedia data based on intersecting times.

syncMedia(
  x,
  y,
  timezone = NULL,
  encoding_speed = "normal",
  export_folder = NULL,
  merge_files = FALSE
)

Arguments

x

data produced by the function selectVideos() or selectAudios()

y

data produced by the function selectVideos() or selectAudios()

timezone

string. Add the correct timezone where the drone videos were taken, as per the R base notation (for additional information, see help(timezomes)). Should this argument be left empty, the time zone will be assumed to be the same as the computer system.

encoding_speed

character. Define encoding presets from FFmpeg. Faster speed produces larger files and slower speeds produces more compressed files. Choose from: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow.

export_folder

full path of the destination folder where the video and/or audio clips should be saved

merge_files

if TRUE, merge audio and video files with intersecting time into a single .MP4 video file

Value

synced videos with audios or synced videos and/or audios in separate files

Author

Alexandre Machado

Examples

if (FALSE) { syncMedia(x = df_selected_videos, y = df_selected_audios, timezone = NULL, encoding_speed = "normal", export_folder = "/Volumes/HDD/export/sync", merge_files = FALSE) }