func MergeAudio(paths []string, mergedFilePath string) error {
	cmds := []string{
		"-y",
	}
	for _, path := range paths {
		cmds = append(cmds, "-i", path)
	}
	cmds = append(cmds, "-c:v", "copy", mergedFilePath)
	return runMergeCmd(exec.Command("ffmpeg", cmds...), paths, "")
}
MergeAudio merge audio
package utils
import (
	"bytes"
	"fmt"
	"os"
	"os/exec"
)
func runMergeCmd(cmd *exec.Cmd, paths []string, mergeFilePath string) error {
	var stderr bytes.Buffer
	cmd.Stderr = &stderr
	err := cmd.Run()
	if err != nil {
		return fmt.Errorf("%s\n%s", err, stderr.String())
	}
	if mergeFilePath != "" {
		os.Remove(mergeFilePath)  
	}
	for _, path := range paths {
		os.Remove(path)  
	}
	return nil
}