Skip to content

Instantly share code, notes, and snippets.

@arvati
Last active May 8, 2023 16:54
Show Gist options
  • Save arvati/652ac4d55527e9e79715761cf81e4aa1 to your computer and use it in GitHub Desktop.
Save arvati/652ac4d55527e9e79715761cf81e4aa1 to your computer and use it in GitHub Desktop.
sudo apk add --update python3 ffmpeg bash
python3 -m ensurepip --user
python3 -m pip install --upgrade pip setuptools --user

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx completions
cat << EOF | sudo tee /etc/profile.d/pipx.sh
eval "\$(register-python-argcomplete pipx)"
EOF
sudo chmod +x /etc/profile.d/pipx.sh

With pipx:

pipx install yt-dlp
pipx install spotdl --download-ffmpeg
pipx list

With pip:

python3 -m pip install -U yt-dlp
python3 -m pip install -U spotdl

Under git-bash or git for windows bash: open terminal with admin rights

python3 -m ensurepip
python3 -m pip install --upgrade pip setuptools

python3 -m pip install pipx
python3 -m pipx ensurepath
pipx completions
@narvati
Copy link

narvati commented May 7, 2023

pacman -S mingw-w64-x86_64-python-pycryptodome --overwrite ""
pacman -S mingw-w64-x86_64-python-brotli --overwrite "
"

@arvati
Copy link
Author

arvati commented May 8, 2023

pacman -Sy yasm msys2-runtime python-build make python-wheel python-brotli libopenssl libcrypt openssh wget ca-certificates openssl libssh2 --overwrite ""
pacman -Sy gcc mingw-w64-x86_64-pkg-config --overwrite '
'

cd ~/Documents/github/
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
./configure --disable-debug --disable-doc --enable-static --enable-gpl --disable-w32threads
make -j4
make install

@arvati
Copy link
Author

arvati commented May 8, 2023

not compiling? install from https://github.com/BtbN/FFmpeg-Builds/releases
cd ~/Downloads
unzip -j "ffmpeg-master-latest-win64-gpl.zip" "ffmpeg-master-latest-win64-gpl/bin/*" -d "/c/Program Files/Git/usr/bin/"

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