Created
January 2, 2025 06:05
-
-
Save rochmirabeau/14d00b7e14ab5528d4d8b1ae711d2469 to your computer and use it in GitHub Desktop.
clip from youtube
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # start and end = time in "XX:XX" formant | |
| function youtubeclip | |
| set start $argv[1] | |
| set end $argv[2] | |
| set title $argv[3] | |
| set url $argv[4] | |
| yt-dlp -f "[protocol!*=dash]" \ | |
| --add-metadata \ | |
| --external-downloader ffmpeg \ | |
| --external-downloader-args "ffmpeg_i:-ss $start -to $end" \ | |
| -o "%(uploader)s - $title %(epoch)s.%(ext)s" \ | |
| $url | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment