Skip to content

Commit

Permalink
fix ffmpeg conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
LumePart committed Dec 2, 2024
1 parent 0643d2b commit 98ccaf8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ func saveVideo(cfg Youtube, track Track, stream *goutubedl.DownloadResult) bool
return false // If the download fails (downloads a few bytes) then it will get triggered here: "tls: bad record MAC"
}

cmd := ffmpeg.Input(input, ffmpeg.KwArgs{
"c": "copy",
"metadata": []string{"artist="+track.Artist,"title="+track.Title,"album="+track.Album},
"loglevel": "error",
}).OverWriteOutput().ErrorToStdOut()
cmd := ffmpeg.Input(input).Output(fmt.Sprintf("%s%s.mp3", cfg.DownloadDir, track.File), ffmpeg.KwArgs{
"map": "0:a",
"metadata": []string{"artist="+track.Artist,"title="+track.Title,"album="+track.Album},
"loglevel": "error",
}).OverWriteOutput().ErrorToStdOut()

if cfg.FfmpegPath != "" {
cmd.SetFfmpegPath(cfg.FfmpegPath)
Expand Down

0 comments on commit 98ccaf8

Please sign in to comment.