Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored May 2, 2023
1 parent a35d2b3 commit 9c89b54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion soundwave/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion types/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
//
Expand Down

0 comments on commit 9c89b54

Please sign in to comment.