Youtube2Audio

From JoBaPedia
Revision as of 16:04, 31 May 2020 by Joachim (talk | contribs) (Created page with "= Youtube to Audio = Download youtube-dl or update to latest (-U) Commands for DL a playlist mkdir artist cd artist youtube-dl ... 'playlist-url' Commands for adding me...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Youtube to Audio

Download youtube-dl or update to latest (-U)

Commands for DL a playlist

mkdir artist
cd artist
youtube-dl ... 'playlist-url'

Commands for adding metadata (will need adapting to actual yt titles)

mkdir meta
find . -name '*.opus' -print | while read f; do
  t=${f%-???????????.opus}
  t=${t/Roger Waters - /}
  t=${t#*/}
  a=${t%/*}
  t=${t#*/}
  echo "<$a><$t>"
  mkdir -p "meta/$a"
  ffmpeg -i "$f" -acodec copy -metadata title="$t" -metadata artist="Roger Waters" -metadata album="$a" "meta/$a/$t.opus"
done