diff --git a/converter/__init__.py b/converter/__init__.py index 73430d7..e83d8d7 100644 --- a/converter/__init__.py +++ b/converter/__init__.py @@ -121,9 +121,12 @@ def parse_options(self, opt, twopass=None): else: format_options.extend(['-map', str(m)]) + thread_opt = [] + if 'threads' in opt: + thread_opt.extend(['-threads', str(opt['threads'])]) # aggregate all options - optlist = audio_options + video_options + subtitle_options + format_options + optlist = audio_options + video_options + subtitle_options + format_options + thread_opt if twopass == 1: optlist.extend(['-pass', '1'])