Restricting resolution
youtube-dl -f best[height=1920] $URL # restrict to <= 1080pSpecifying format
youtube-dl -f best[ext=mp4] $URL # mp4 filesCombining specifications
youtube-dl -f best[ext=mp4,height=1920] $URL # restrict to <= 1080p, mp4 files