Skip to content

Instantly share code, notes, and snippets.

@fsiler
Last active May 3, 2020 17:28
Show Gist options
  • Save fsiler/4d16ef0356ea5f6785349b4cb6513dfc to your computer and use it in GitHub Desktop.
Save fsiler/4d16ef0356ea5f6785349b4cb6513dfc to your computer and use it in GitHub Desktop.
Notes for EMC productions mass mashups
youtube-dl "ytsearchall:#digitaldrumlineproject" --config-location $HOME/EMC/youtube-dl.config
youtube-dl "ytsearchall:#digitaldrumlineproject" --dump-json --flat-playlist | jq -r ".url" | parallel --shuf -j4 --retries 10 youtube-dl --config-location $HOME/EMC/youtube-dl.config -- :::
ffmpeg-normalize $HOME/EMC/Raw/**/*.mp4 -of $HOME/EMC/Normalized --extension mp4 -c:a aac
Needed software:
- HomeBrew (brew.sh)
- youtube-dl
- ffmpeg
- parallel
- jq
- ffmpeg-normalize (pip install ffmpeg-normalize)
# place this in $HOME/EMC/youtube-dl.config
-f best[ext=mp4]/best
-o "$HOME/EMC/Raw/%(title)s %(id)s %(uploader)s.%(ext)s"
--recode mp4
--default-search ytsearch
--mark-watched
--sub-lang en --write-auto-sub --write-sub --embed-subs
--add-metadata
--xattrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment