mediaaudio.go 349 B
Newer Older
package mediamdl

// getAudioFromVideo1
// ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3

// GetAudioFromVideo - GetAudioFromVideo
func getAudioFromVideo1(inputPath, outputfilePath string) error {
	commandargs := []string{`-i`, inputPath, `-f`, `mp3`, `-ab`, `192000`, `-vn`, `-y`, outputfilePath}
	return executeargs("ffmpeg", commandargs)
}