segment_elan_video: Segment a video file based on ELAN annotations

View source: R/segment_elan_video.R

segment_elan_videoR Documentation

Segment a video file based on ELAN annotations

Description

This function inputs an ELAN file and a video and outputs new videos from the ELAN annotations as segments

Usage

segment_elan_video(
  eaf,
  segmentation_tier = NULL,
  target_glosses = NULL,
  tag = T,
  video = NULL,
  video_format = ".mp4",
  path = NULL,
  method = "av",
  preset = "medium",
  crf = "12",
  padding = 0
)

Arguments

eaf

The ELAN files that supplies annotations as segments

segmentation_tier

Specify tier(s) (TIER_ID) to be read

target_glosses

Specify which glosses to be kept

tag

Whether to use annotations as tags in filenames (default = 'TRUE')

video

The filename of the video to be modified

video_format

The format of the output videos (default = '.mp4')

path

The path to the output videos

method

Whether to use 'av' (in R) or 'ffmpeg' (system call) (default = "av")

preset

Video quality preset (default = "medium")

crf

Video processing preset (default = "12")

padding

Add (+) or subtract (-) padding at start/end (default = 0 msec)

Value

The names of the output video files


borstell/signglossR documentation built on June 11, 2025, 5:58 a.m.