diff options
Diffstat (limited to 'ffmpeg.go')
-rw-r--r-- | ffmpeg.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -6,7 +6,7 @@ import ( ffmpeg "github.com/u2takey/ffmpeg-go" ) -func cutoutClipAndTranscode(ut *Utterance) { +func cutoutClipAndTranscode(ut *Utterance) error { err := ffmpeg.Input(ut.FD.AudioPath, ffmpeg.KwArgs{ "ss": ut.LeftTime, @@ -17,8 +17,5 @@ func cutoutClipAndTranscode(ut *Utterance) { "metadata": fmt.Sprintf(`source="%s"`, ut.FD.VttPath), }).OverWriteOutput().ErrorToStdOut().Run() - if err != nil { - panic(err) - } - return + return err } |