From 04ae522268cec8b5f6e0529366a21a400c267aad Mon Sep 17 00:00:00 2001 From: P_Q_H Date: Mon, 25 Feb 2019 13:34:32 +0800 Subject: [PATCH] youtube-dl: add example for the --format option (#2714) --- pages/common/youtube-dl.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/youtube-dl.md b/pages/common/youtube-dl.md index 97884d9d4..9df1668c0 100644 --- a/pages/common/youtube-dl.md +++ b/pages/common/youtube-dl.md @@ -7,6 +7,14 @@ `youtube-dl {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}` +- List all formats that a video or playlist is available in: + +`youtube-dl --list-formats {{https://www.youtube.com/watch?v=Mwa0_nE9H7A}}` + +- Download a video or playlist at a specific quality: + +`youtube-dl --format {{best[height<=480]}} {{https://www.youtube.com/watch?v=oHg5SJYRHA0}}` + - Download the audio from a video and convert it to an MP3: `youtube-dl -x --audio-format {{mp3}} {{url}}`