diff options
author | Grail Finder <wohilas@gmail.com> | 2023-02-17 10:43:05 +0600 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2023-02-17 10:43:05 +0600 |
commit | 520aae362ecdac0b60c9aca19b83cac1061813de (patch) | |
tree | 6f327b150f342ae07922324a2ca1a4630969f046 | |
parent | ef8df5b18af0217287335e32936db073e0083919 (diff) |
Feat: opus doesnt have 22khz; comment out
-rw-r--r-- | ffmpeg.go | 2 | ||||
-rw-r--r-- | main.go | 6 |
2 files changed, 5 insertions, 3 deletions
@@ -13,7 +13,7 @@ func cutoutClipAndTranscode(ut *Utterance) error { "to": ut.RightTime, }, ).Output(ut.OutPath, ffmpeg.KwArgs{ - "ar": "22050", + // "ar": "22050", "metadata": fmt.Sprintf(`source="%s"`, ut.FD.VttPath), }).OverWriteOutput().ErrorToStdOut().Run() return err @@ -12,7 +12,7 @@ import ( const ( subExt = ".vtt" - outdir = "data/utterances" + outdir = "/mnt/nvme/data" ffCmdOut = "data/ff_commands" timeSep = "-->" metadataPath = "data/metadata.json" @@ -180,13 +180,15 @@ func main() { fmt.Println("filled queue, starting workers") - workers := 10 + workers := 100 for i := 0; i < workers; i++ { go worker(queue, i, done) } for { if len(queue) == 0 { + // give time for workers to finish + time.Sleep(3 * time.Second) done <- true close(done) close(queue) |