audio_info: get media information

Description Usage Arguments Details Value

View source: R/audio_info.R

Description

audio information via sox or ffmpeg

Usage

1
2
audio_info(filein, pathtosox = getOption("avutils_sox"),
  pathtoffmpeg = getOption("avutils_ffmpeg"), use_sox = TRUE)

Arguments

filein

character, path to audio files

pathtosox

character, path to sox binary

pathtoffmpeg

character, path to ffmepg binary

use_sox

logical, should sox be used (default is TRUE, and if FALSE ffmpeg is used)

Details

Getting information about audio files is possible both via sox and ffmpeg. The advantage of sox is that it provides more detailed information, but does not by default work with some file types (e.g. mp3). ffmpeg on the other seems to work with more file types, but returns less detailed information. If you use the default option (i.e. use_sox = TRUE) and see missing information in the output it might be a good idea to try via ffmpeg, i.e. use_sox = FALSE.

Value

a data.frame with features of audio files


gobbios/avutils documentation built on Feb. 19, 2020, 9:44 a.m.