From 71571f513b664dee0a9908015012ba86d785be72 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Thu, 16 Feb 2023 07:53:34 +0300 Subject: Feat: make needed directories to avoid err --- main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index c82d538..302439c 100644 --- a/main.go +++ b/main.go @@ -231,6 +231,10 @@ func main() { fmt.Println("sum of utterances:", len(utterances)) + if err := os.MkdirAll(outdir, 0755); err != nil { + panic(err) + } + ffmpegCommands := make(map[string]struct{}) // // needs to be oneline command to be unique // ffCommandsRaw := readLines(ffCmdOut) @@ -239,6 +243,7 @@ func main() { // } for _, ut := range utterances { ffmpegCommands[buildFFmpegCall(ut)] = struct{}{} + cutoutClipAndTranscode(ut) } fflines := keysToSlice(ffmpegCommands) fmt.Println("# lines: ", len(fflines)) -- cgit v1.2.3