Skip to content

Conversation

@mvayngrib
Copy link

see my exact use case below :)

youtubemp3() {
  local video="$1"
  local title=$(ytdl -j "$video" | jq -r .title | sanitize-filename) # <<<<<<<<< YES!
  local output="$HOME/Downloads/$title.mp3"
  ytdl --filter audioonly "$video" | ffmpeg -i pipe:0 -b:a 192K -vn "$output"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant