aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r--youtube_dl/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py
index d7ab0f086..0d9053db3 100644
--- a/youtube_dl/__init__.py
+++ b/youtube_dl/__init__.py
@@ -455,6 +455,9 @@ def _real_main():
if opts.extractaudio:
fd.add_post_processor(FFmpegExtractAudioPP(preferredcodec=opts.audioformat, preferredquality=opts.audioquality, keepvideo=opts.keepvideo, nopostoverwrites=opts.nopostoverwrites))
+ if opts.format:
+ fd.add_post_processor(FFmpegVideoConvertor(preferedformat=opts.format))
+
# Update version
if opts.update_self:
update_self(fd.to_screen, opts.verbose, sys.argv[0])