diff --git a/soundwave/service.go b/soundwave/service.go index 2196f9d..4ef3464 100644 --- a/soundwave/service.go +++ b/soundwave/service.go @@ -35,7 +35,7 @@ func (s *service) GenerateWaveForm() string { if err != nil { panic(fmt.Sprintf("could not get video duration: %v", err)) }*/ - outputPath := path.Join(path.Dir(s.flags.Output), "output.png") + outputPath := path.Join(path.Dir(s.flags.Output), s.flags.Output) log.Println(outputPath) //ffmpeg -i input -filter_complex "compand,showwavespic=s=640x120" -frames:v 1 output.png cmd := exec.Command( diff --git a/types/flags.go b/types/flags.go index c219ba9..cbeb8b6 100644 --- a/types/flags.go +++ b/types/flags.go @@ -16,7 +16,7 @@ type Flags struct { func (f *Flags) Set() error { // input := flag.String("i", "", "path of the input file") - output := flag.String("o", "", "path of the output soundwave file") + output := flag.String("o", "output.png", "path of the output soundwave file") width := flag.Int("w", 640, "frame width") height := flag.Int("h", 120, "frame height") //