Skip to content

Instantly share code, notes, and snippets.

@afonsolopez
Created May 27, 2022 12:47
Show Gist options
  • Select an option

  • Save afonsolopez/5ab7cb4f21918d2f7262bc0469228fba to your computer and use it in GitHub Desktop.

Select an option

Save afonsolopez/5ab7cb4f21918d2f7262bc0469228fba to your computer and use it in GitHub Desktop.

Get youtube video format/quality list

youtube-dl -F '<YOUTUBE_VIDEO_URL>'

Download an specific format/quality trought it ID

youtube-dl -f 136 '<YOUTUBE_VIDEO_URL>'

Cut the video by start/end timestamps

ffmpeg \                                                       
  -i <VIDEO_FILE_PATH> \
  -r 15 \
  -ss 00:00:54 -to 00:01:05 \
  <GIF_FILE_PATH>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment