summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))