summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2023-02-16 07:53:34 +0300
committerGrailFinder <wohilas@gmail.com>2023-02-16 07:53:34 +0300
commit71571f513b664dee0a9908015012ba86d785be72 (patch)
tree9a332c8a59371ae12fe81d873dade6c132f4aad1
parent41582a3c316acf6e446364d6a4ba43b0c3ef1cea (diff)
Feat: make needed directories to avoid err
-rw-r--r--main.go5
1 files changed, 5 insertions, 0 deletions
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))