02:03
Using ffmpeg-go, I am trying to trim and mix (overlay) two audio files together. Currently I have this code:
func AssebmleAudio(music, effect string, userId int)
outputFilePath := filepath.Join(utils.GetRoot(), "users", fmt.Sprintf("%d", userId), "audio.mp3")
musicStream := Trim(ffmpeg_go.Input(music), 60)
effectStream := Trim(ffmpeg_go.Input(effect), 60)
Mix(musicStream, effectStream).Output(outputFilePath).Run()
// Mixes specified user audio and vinyl audio asset
func Mix(music, effect *ffmpeg_go.Stream) *ffmpeg_go.Stream
(...)