aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/postprocessor/ffmpeg.py
diff options
context:
space:
mode:
authorAurélio A. Heckert <aurelio@colivre.coop.br>2015-06-30 16:22:09 -0300
committerAurélio A. Heckert <aurelio@colivre.coop.br>2015-06-30 16:22:09 -0300
commit1866432db74946c2b66263d38ed2c9d9d7e3177d (patch)
tree49409dd9af67a997ad7b49a3b2bd27514c73811b /youtube_dl/postprocessor/ffmpeg.py
parent14835de9fb41798c8e6e731a3f07ae871770666f (diff)
Rename --pp-params to --postprocessor-args and access value as super class attribute
Diffstat (limited to 'youtube_dl/postprocessor/ffmpeg.py')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index a696b12b4..891c72769 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -29,8 +29,8 @@ class FFmpegPostProcessorError(PostProcessingError):
class FFmpegPostProcessor(PostProcessor):
- def __init__(self, downloader=None):
- PostProcessor.__init__(self, downloader)
+ def __init__(self, downloader=None, extra_cmd_args=None):
+ PostProcessor.__init__(self, downloader, extra_cmd_args)
self._determine_executables()
def check_version(self):
@@ -287,16 +287,15 @@ class FFmpegExtractAudioPP(FFmpegPostProcessor):
class FFmpegVideoConvertorPP(FFmpegPostProcessor):
- def __init__(self, downloader=None, preferedformat=None, extra_params=[]):
- super(FFmpegVideoConvertorPP, self).__init__(downloader)
+ def __init__(self, downloader=None, preferedformat=None, extra_cmd_args=None):
+ super(FFmpegVideoConvertorPP, self).__init__(downloader, extra_cmd_args)
self._preferedformat = preferedformat
- self._extra_params = extra_params
def run(self, information):
path = information['filepath']
prefix, sep, ext = path.rpartition('.')
ext = self._preferedformat
- options = self._extra_params
+ options = self._extra_cmd_args
if self._preferedformat == 'xvid':
ext = 'avi'
options.extend(['-c:v', 'libxvid', '-vtag', 'XVID'])