Skip to content

Instantly share code, notes, and snippets.

@anakaiti
Last active June 2, 2020 16:28
Show Gist options
  • Save anakaiti/6c02ba44f2a0db260803b5526aceb511 to your computer and use it in GitHub Desktop.
Save anakaiti/6c02ba44f2a0db260803b5526aceb511 to your computer and use it in GitHub Desktop.
Fish script to download youtube videos partially
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