From: Philipp Hagemeister Date: Tue, 30 Oct 2012 16:41:38 +0000 (+0100) Subject: -x for --extract-audio, one of the most popular options X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b7a34316d20d6eee3d44a7c3294cf01592e07388;p=youtube-dl -x for --extract-audio, one of the most popular options --- 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')