Skip to content

Instantly share code, notes, and snippets.

@donnaken15
Created January 10, 2022 07:25
Show Gist options
  • Save donnaken15/adc752728206b9107dcee2218aed70f4 to your computer and use it in GitHub Desktop.
Save donnaken15/adc752728206b9107dcee2218aed70f4 to your computer and use it in GitHub Desktop.
clip YouTube videos with ffmpeg and youtube-dl (SLOW), i wonder how this can be done the same way as just clicking into a specific part of a video
#!/bin/sh
ffmpeg \
-i $(youtube-dl -g -f 299 $1) \
-i $(youtube-dl -g -f 251 $1) \
-ss $2 -t $3 $4 ${1:-foo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment