diff options
author | GrailFinder <wohilas@gmail.com> | 2023-02-16 07:53:34 +0300 |
---|---|---|
committer | GrailFinder <wohilas@gmail.com> | 2023-02-16 07:53:34 +0300 |
commit | 71571f513b664dee0a9908015012ba86d785be72 (patch) | |
tree | 9a332c8a59371ae12fe81d873dade6c132f4aad1 /main.go | |
parent | 41582a3c316acf6e446364d6a4ba43b0c3ef1cea (diff) |
Feat: make needed directories to avoid err
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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)) |