Extract metadata from files in a directory in batch (one call to ffmpeg for all files)

This commit is contained in:
Deluan 2020-01-21 00:49:41 -05:00
parent d9ce6f3b51
commit c42e1bd2f5
7 changed files with 139 additions and 232 deletions

View file

@ -17,16 +17,16 @@ type sonic struct {
DisableDownsampling bool `default:"false"`
DownsampleCommand string `default:"ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -f mp3 -"`
//ProbeCommand string `default:"ffprobe -v quiet -print_format json -show_format %s"`
ProbeCommand string `default:"ffmpeg -i %s -f ffmetadata"`
PlsIgnoreFolders bool `default:"true"`
PlsIgnoredPatterns string `default:"^iCloud;\\~"`
ProbeCommand string `default:"ffmpeg %s -f ffmetadata"`
PlsIgnoreFolders bool `default:"true"`
PlsIgnoredPatterns string `default:"^iCloud;\\~"`
// DevFlags
LogLevel string `default:"info"`
DevDisableAuthentication bool `default:"false"`
DevDisableFileCheck bool `default:"false"`
DevDisableBanner bool `default:"false"`
DevInitialPassword string `default:""`
}
var Sonic *sonic