Rename --pp-params to --postprocessor-args and access value as super class attribute
This commit is contained in:
parent
14835de9fb
commit
1866432db7
6 changed files with 14 additions and 17 deletions
|
@ -171,10 +171,6 @@ def _real_main(argv=None):
|
|||
if opts.recodevideo is not None:
|
||||
if opts.recodevideo not in ['mp4', 'flv', 'webm', 'ogg', 'mkv', 'xvid']:
|
||||
parser.error('invalid video recode format specified')
|
||||
if opts.pp_params is None:
|
||||
opts.pp_params = []
|
||||
else:
|
||||
opts.pp_params = shlex.split(opts.pp_params)
|
||||
if opts.convertsubtitles is not None:
|
||||
if opts.convertsubtitles not in ['srt', 'vtt', 'ass']:
|
||||
parser.error('invalid subtitle format specified')
|
||||
|
@ -231,7 +227,7 @@ def _real_main(argv=None):
|
|||
postprocessors.append({
|
||||
'key': 'FFmpegVideoConvertor',
|
||||
'preferedformat': opts.recodevideo,
|
||||
'extra_params': opts.pp_params
|
||||
'extra_cmd_args': opts.postprocessor_args,
|
||||
})
|
||||
if opts.convertsubtitles:
|
||||
postprocessors.append({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue