Last active
June 2, 2020 16:28
-
-
Save anakaiti/6c02ba44f2a0db260803b5526aceb511 to your computer and use it in GitHub Desktop.
Fish script to download youtube videos partially
This file contains 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
function youtube -d 'Download partial youtube videos' -a url start duration out | |
set mp4 (youtube-dl -g -f 22 $url) | |
set -q out; or set out 'out.mp4' | |
ffmpeg -ss $start -i $mp4 -t $duration -c copy $out | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment