ShareShortcuts

yt-dlp mac

Yt-dlp shortcut for Mac

chrunos
Fork “yt-dlp mac”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so chrunos gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
15K
Saved
0
Actions
32
Category
Photos and videos
Version
1.0
Language
EN

Yt-dlp shortcut for Mac. Supports private videos downloading. Requires ffmpeg installed if you want to download 4k/8k videos.

What's New

Version 1.0

First release

Version History
1.0 Apr 20, 2025

First release

What it does

32 actions
  1. Comment
    Created by Cody Chrunos My website: chrunos.com Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
  2. Text
  3. Choose from Menu
  4. Choose from Menu
    Compatible Download
  5. Run Shell Script
  6. Choose from Menu
    Download Audio Only
  7. Run Shell Script
  8. Choose from Menu
    Download Video Best Quality - Up to 8K
  9. Run Shell Script
  10. Choose from Menu
    Download Private Video
  11. Choose from Menu
    Choose The Browser You Logged In
  12. Choose from Menu
    Safari
  13. Text
  14. Choose from Menu
    Edge
  15. Text
  16. Choose from Menu
    Chome
  17. Text
  18. Choose from Menu
    Firefox
  19. Text
  20. Run Shell Script
  21. Choose from Menu
    Best Quality and H.264 Conversion - Slower
  22. Run Shell Script
  23. Choose from Menu
    Downloaded. What's Next?
  24. Choose from Menu
    Get More Shortcuts
  25. URL
    https://chrunos.com/top-siri-shortcuts/
  26. Open URLs
  27. Choose from Menu
    Contact me on Telegram
  28. URL
    https://t.me/+fd82OOpm6zNjNDhl
  29. Open URLs
  30. Choose from Menu
    Check the Premium Shortcuts
  31. Open URLs
  32. Choose from Menu
    Exit

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define mac true
#include 'actions/mac'
#define color green

/*
Created by Cody Chrunos
My website: chrunos.com
Watch tutorial videos in my YouTube channel: https://www.youtube.com/channel/UCtj4sKppQr_Xd9TjxSw4JwQ
*/

menu nil {
item "Compatible Download":
	runShellScript("cd ~/Downloads\nexport PATH=/opt/homebrew/bin/:$PATH\nTEMP_DIR=$(mktemp -d)\npython3 -m venv \"$TEMP_DIR/venv\"\nsource \"$TEMP_DIR/venv/bin/activate\"\npip3 install --upgrade yt-dlp\nyt-dlp -f 'bestvideo[ext=mp4][vcodec^=avc]+bestaudio/best' --merge-output-format mp4 '{}'\ndeactivate\nrm -rf \"$TEMP_DIR\"")
item "Download Audio Only":
	runShellScript("cd ~/Downloads\nexport PATH=/opt/homebrew/bin/:$PATH\nTEMP_DIR=$(mktemp -d)\npython3 -m venv \"$TEMP_DIR/venv\"\nsource \"$TEMP_DIR/venv/bin/activate\"\npip3 install --upgrade yt-dlp\nyt-dlp -x --audio-format mp3 '{}'\ndeactivate\nrm -rf \"$TEMP_DIR\"\n")
item "Download Video Best Quality - Up to 8K":
	runShellScript("cd ~/Downloads\nexport PATH=\"/opt/homebrew/bin:$PATH\"\nTEMP_DIR=$(mktemp -d)\npython3 -m venv \"$TEMP_DIR/venv\"\nsource \"$TEMP_DIR/venv/bin/activate\"\npip3 install --upgrade yt-dlp\nyt-dlp -f 'bestvideo+bestaudio/best' --merge-output-format mp4 \"{}\"\ndeactivate\nrm -rf \"$TEMP_DIR\"")
item "Download Private Video":
	menu "Choose The Browser You Logged In " {
	item "Safari":
	item "Edge":
	item "Chome":
	item "Firefox":
	}
	runShellScript("cd ~/Downloads\nexport PATH=/opt/homebrew/bin/:$PATH\nTEMP_DIR=$(mktemp -d)\npython3 -m venv \"$TEMP_DIR/venv\"\nsource \"$TEMP_DIR/venv/bin/activate\"\npip3 install --upgrade yt-dlp\nyt-dlp --cookies-from-browser {} '{}'\ndeactivate\nrm -rf \"$TEMP_DIR\"")
item "Best Quality and H.264 Conversion - Slower":
	runShellScript("cd ~/Downloads\nexport PATH=\"/opt/homebrew/bin:$PATH\"\nTEMP_DIR=$(mktemp -d)\npython3 -m venv \"$TEMP_DIR/venv\"\nsource \"$TEMP_DIR/venv/bin/activate\"\npip3 install --upgrade yt-dlp\n\n# Download and convert to macOS-friendly H.264/AAC\nyt-dlp -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' \\n  --merge-output-format mp4 \\n  --postprocessor-args \"ffmpeg:-c:v libx264 -c:a aac\" \\n  --recode-video mp4 \\n  \"{}\"\n\ndeactivate\nrm -rf \"$TEMP_DIR\"")
}

menu "Downloaded. What's Next?" {
item "Get More Shortcuts":
	const URL = url("https://chrunos.com/top-siri-shortcuts/")
	openURL(URL)
item "Contact me on Telegram":
	const URL1 = url("https://t.me/+fd82OOpm6zNjNDhl")
	openURL(URL1)
item "Check the Premium Shortcuts":
	openURL("https://chrunos.com/premium-shortcuts/")
item "Exit":
}
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by chrunos

See All

You Might Also Like

See All
Advertisement