Skip to content

Instantly share code, notes, and snippets.

@dasl-
Last active July 20, 2021 02:29
Show Gist options
  • Save dasl-/367c788c7ab5eedc68210390f3a1f398 to your computer and use it in GitHub Desktop.
Save dasl-/367c788c7ab5eedc68210390f3a1f398 to your computer and use it in GitHub Desktop.

Shell pipelines setup

Table of Contents

Setup

We need to install ffmpeg, python3, and sox if not already installed. On OS X, you can use homebrew:

brew install ffmpeg
brew install sox
brew install python3
brew install pv
brew install php # only necessary if you don't already have php installed

If you have older versions already installed, installing will fail as they already exist. I would recommend updating to the latest version though:

brew upgrade ffmpeg
brew upgrade sox
brew upgrade python3
brew upgrade pv
brew upgrade php # you may or may not want to do this depending on if you're ready to upgrade to php8 on your laptop :)

Next, install youtube-dl. Note that if you want to run through this again at a future date you may need to update youtube-dl — old versions of it occasionally break as youtube updates their site.

sudo -H pip3 install --upgrade youtube-dl

Next, install yt-dlp, a fork of youtube-dl that has a workaround (for now) for an issue where youtube has been throttling youtube-dl’s download speed:

sudo -H pip3 install --upgrade yt-dlp

Next, run a couple more commands to install printvideo.com:

mkdir -p ~/pipelines && cd ~/pipelines
curl https://justine.lol/printvideo.com > printvideo.com && chmod a+x printvideo.com

Finally, exit and restart your shell to ensure all these recently installed programs are loaded.

@tigfox
Copy link

tigfox commented Jul 19, 2021

brew update <thing> should be brew upgrade <thing>

@dasl-
Copy link
Author

dasl- commented Jul 19, 2021

@tigfox thank you, fixed!

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