diff options
Diffstat (limited to 'ffmpeg.go')
-rw-r--r-- | ffmpeg.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -18,3 +18,17 @@ func cutoutClipAndTranscode(ut *Utterance) error { }).OverWriteOutput().ErrorToStdOut().Run() return err } + +func cutOnEqualParts(filepath, segment string) error { + err := ffmpeg.Input(filepath). + Output(filepath+"%03d.opus", + ffmpeg.KwArgs{ + "c": "copy", + "map": 0, + "segment_time": segment, + "f": "segment", + "reset_timestamps": 1, + }). + OverWriteOutput().ErrorToStdOut().Run() + return err +} |