Skip to content

Instantly share code, notes, and snippets.

@pjobson
Created July 10, 2026 23:25
Show Gist options
  • Select an option

  • Save pjobson/eb67271ccbfc01e2486549091901e22d to your computer and use it in GitHub Desktop.

Select an option

Save pjobson/eb67271ccbfc01e2486549091901e22d to your computer and use it in GitHub Desktop.
yt-dlp music video script
#!/bin/bash
# You'll need to update:
# * path to python3
# * path to yt-dlp
# * path to ffmpeg
# * download archive path
/opt/python/3.14.6/bin/python3 \
/home/pjobson/.local/bin/yt-dlp \
--cookies-from-browser firefox \
--ffmpeg-location /opt/video/bin/ffmpeg -S vcodec:h264,res,acodec:m4a \
--download-archive /dvr/media/MusicVideos/downloaded.txt \
--remux-video mkv \
--merge-output-format mkv \
--js-runtimes node "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment