#!/bin/bash# from https://askubuntu.com/a/486298/341752# show available formatsyoutube-dl -F "http://www.youtube.com/watch?v=P9pzm5b6FFY"# format #22youtube-dl -f 22"http://www.youtube.com/watch?v=P9pzm5b6FFY"# to select the best qualityyoutube-dl -f bestvideo+bestaudio "http://www.youtube.com/watch?v=P9pzm5b6FFY"# alternativelyyoutube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --merge-output-format mp4 "http://www.youtube.com/watch?v=P9pzm5b6FFY"
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.