aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__init__.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaimemf93@gmail.com>2013-01-11 20:50:49 +0100
committerJaime Marquínez Ferrándiz <jaimemf93@gmail.com>2013-01-11 20:50:49 +0100
commit67d0c25eab1c425d22549a5d3437380a7740aec1 (patch)
treebacf9abee85e327135e1be3ead583c8596d818a4 /youtube_dl/__init__.py
parent09f9552b409abba063de011a879e9fa94bf6f027 (diff)
Add a PostProcessor for converting video format
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])