aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/options.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-06 21:49:57 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-06 21:49:57 +0530
commit35faefee5ddb67c447c3206199cc06124600e84d (patch)
treeb2953a11e86c4049c3195a20047b9dc5186ad22c /yt_dlp/options.py
parentb7c47b743871cdf3e0de75b17e4454d987384bf9 (diff)
downloadhypervideo-pre-35faefee5ddb67c447c3206199cc06124600e84d.tar.lz
hypervideo-pre-35faefee5ddb67c447c3206199cc06124600e84d.tar.xz
hypervideo-pre-35faefee5ddb67c447c3206199cc06124600e84d.zip
[ExtractAudio, cleanup] Refactor
Diffstat (limited to 'yt_dlp/options.py')
-rw-r--r--yt_dlp/options.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py
index b326e885f..97d8c61a9 100644
--- a/yt_dlp/options.py
+++ b/yt_dlp/options.py
@@ -1423,20 +1423,22 @@ def create_parser():
postproc.add_option(
'--audio-format', metavar='FORMAT', dest='audioformat', default='best',
help=(
- 'Specify audio format to convert the audio to when -x is used. Currently supported formats are: '
- 'best (default) or one of %s' % ', '.join(FFmpegExtractAudioPP.SUPPORTED_EXTS)))
+ 'Format to convert the audio to when -x is used. '
+ f'(currently supported: best (default), {", ".join(FFmpegExtractAudioPP.SUPPORTED_EXTS)})'))
postproc.add_option(
'--audio-quality', metavar='QUALITY',
dest='audioquality', default='5',
- help='Specify ffmpeg audio quality to use when converting the audio with -x. Insert a value between 0 (best) and 10 (worst) for VBR or a specific bitrate like 128K (default %default)')
+ help=(
+ 'Specify ffmpeg audio quality to use when converting the audio with -x. '
+ 'Insert a value between 0 (best) and 10 (worst) for VBR or a specific bitrate like 128K (default %default)'))
postproc.add_option(
'--remux-video',
metavar='FORMAT', dest='remuxvideo', default=None,
help=(
- 'Remux the video into another container if necessary (currently supported: %s). '
- 'If target container does not support the video/audio codec, remuxing will fail. '
- 'You can specify multiple rules; Eg. "aac>m4a/mov>mp4/mkv" will remux aac to m4a, mov to mp4 '
- 'and anything else to mkv.' % ', '.join(FFmpegVideoRemuxerPP.SUPPORTED_EXTS)))
+ 'Remux the video into another container if necessary '
+ f'(currently supported: {", ".join(FFmpegVideoRemuxerPP.SUPPORTED_EXTS)}). '
+ 'If target container does not support the video/audio codec, remuxing will fail. You can specify multiple rules; '
+ 'Eg. "aac>m4a/mov>mp4/mkv" will remux aac to m4a, mov to mp4 and anything else to mkv'))
postproc.add_option(
'--recode-video',
metavar='FORMAT', dest='recodevideo', default=None,