MCPcopy Create free account
hub / github.com/code-scan/AutoSubtitles / MergeText

Function MergeText

pkg/ffmpeg.go:40–45  ·  view source on GitHub ↗
(video string, textpath string)

Source from the content-addressed store, hash-verified

38 return fmt.Sprintf("output/%s_audio.wav", name)
39}
40func MergeText(video string, textpath string) string {
41 name := path.Base(video)
42 cmd := "ffmpeg -y -i %s -vf subtitles=output/video.srt output/merge_%s.mp4"
43 Run(fmt.Sprintf(cmd, video, name))
44 return fmt.Sprintf("output/merge_%s.mp4", name)
45}

Callers 1

mainFunction · 0.92

Calls 1

RunFunction · 0.85

Tested by

no test coverage detected