From b7a34316d20d6eee3d44a7c3294cf01592e07388 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Tue, 30 Oct 2012 17:41:38 +0100 Subject: [PATCH] -x for --extract-audio, one of the most popular options --- README.md | 2 +- youtube-dl.1 | 2 +- youtube_dl/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 11f4e80ad..1a96bd98d 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ which means you can modify it, redistribute it or use it however you like. -n, --netrc use .netrc authentication data ## Post-processing Options: - --extract-audio convert video files to audio-only files (requires + -x, --extract-audio convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe) --audio-format FORMAT "best", "aac", "vorbis", "mp3", "m4a", or "wav"; best by default diff --git a/youtube-dl.1 b/youtube-dl.1 index 92f9e91db..d4883ad2f 100644 --- a/youtube-dl.1 +++ b/youtube-dl.1 @@ -120,7 +120,7 @@ redistribute it or use it however you like. .IP .nf \f[C] ---extract-audio\ \ \ \ \ \ \ \ \ \ convert\ video\ files\ to\ audio-only\ files\ (requires +-x,\ --extract-audio\ \ \ \ \ \ convert\ video\ files\ to\ audio-only\ files\ (requires \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ ffmpeg\ or\ avconv\ and\ ffprobe\ or\ avprobe) --audio-format\ FORMAT\ \ \ \ "best",\ "aac",\ "vorbis",\ "mp3",\ "m4a",\ or\ "wav"; \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ best\ by\ default diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index 5f90e2bff..3aa7bde12 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -298,7 +298,7 @@ def parseOpts(): help='write video metadata to a .info.json file', default=False) - postproc.add_option('--extract-audio', action='store_true', dest='extractaudio', default=False, + postproc.add_option('-x', '--extract-audio', action='store_true', dest='extractaudio', default=False, help='convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)') postproc.add_option('--audio-format', metavar='FORMAT', dest='audioformat', default='best', help='"best", "aac", "vorbis", "mp3", "m4a", or "wav"; best by default')