Last active
June 6, 2025 06:13
-
-
Save raspberrypisig/665fee51fd2c373c6b4533c2f859da4d to your computer and use it in GitHub Desktop.
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
set shell := ["sh", "-c"] | |
set windows-shell := ["powershell", "-c"] | |
mod yt-dlp "justfile-ytdlp.just" | |
@_menu: | |
just --list | |
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
set shell := ["sh", "-c"] | |
set windows-shell := ["powershell", "-c"] | |
@_menu: | |
just --list yt-dlp | |
[no-cd] | |
download youtube_url: | |
yt-dlp --format "bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]" {{ youtube_url }} | |
[no-cd] | |
download_720p youtube_url: | |
yt-dlp -S vcodec:h264,fps,res:720,acodec:m4a {{ youtube_url }} | |
[no-cd] | |
download_1080p youtube_url: | |
yt-dlp -S vcodec:h264,fps,res:1080,acodec:m4a {{ youtube_url }} | |
formats youtube_url: | |
yt-dlp --list-formats {{ youtube_url }} | |
# timestamp in format 00:03:12 | |
[no-cd] | |
download_section youtube_url timestamp_start timestamp_end: | |
yt-dlp yt-dlp -S vcodec:h264,fps,res:720,acodec:m4a --download-sections "*{{ timestamp_start }}-{{ timestamp_end }}" --force-keyframes-at-cuts {{ youtube_url }} | |
[no-cd] | |
image video image: | |
ffmpeg -i "{{ video }}" -ss 00:00:00 -vframes 1 -q:v 2 "{{ image }}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment