This function matches the metadata of videos and the metadata of the photo-identification to output still frames of the videos containing photo-identified individuals

getVideoFrame(
  selected_metadata,
  output_extension = ".png",
  timezone = NULL,
  export_video_folder = NULL,
  export_data_folder = NULL,
  export_data_filename = NULL,
  show_ffmpeg_on_console = FALSE
)

Arguments

selected_metadata

data frame with metadata of the drone videos included in the dataframe containing the metadata of the photographs produced by the function selectVideos().

output_extension

c('.jpg', '.png', '.tiff')

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.

export_video_folder

full path of the destination folder where the frames of the drone videos should be saved at

export_data_folder

full folder path to where the data frame with the matched data should be exported to

export_data_filename

csv name for the export file (e.g. export_data_filename = 'drone_trimmed_videoframe_database.csv')

show_ffmpeg_on_console

logical. If TRUE, it prints the FFmpeg output on console.

Note

Requires FFmpeg. Please install it from [http://ffmpeg.org]

Author

Alexandre Machado

Examples

if (FALSE) getVideoFrame(selected_metadata = selected_metadata, output_extension = '.png', timezone = 'America/Sao_Paulo', export_video_folder = '/Desktop/you/data', export_data_folder = '/Desktop/you/data', export_data_filename = 'drone_trimmed_videoclip_database.csv', show_ffmpeg_on_console = FALSE)