[ffmpeg] Correct argument encoding on Windows with Python 2.x
Fixes #2924
This commit is contained in:
parent
beee53de06
commit
f07b74fc18
2 changed files with 12 additions and 1 deletions
|
@ -9,6 +9,7 @@ from .common import AudioConversionError, PostProcessor
|
|||
from ..utils import (
|
||||
check_executable,
|
||||
compat_subprocess_get_DEVNULL,
|
||||
encodeArgument,
|
||||
encodeFilename,
|
||||
PostProcessingError,
|
||||
prepend_extension,
|
||||
|
@ -48,7 +49,7 @@ class FFmpegPostProcessor(PostProcessor):
|
|||
for path in input_paths:
|
||||
files_cmd.extend(['-i', encodeFilename(path, True)])
|
||||
cmd = ([self._get_executable(), '-y'] + files_cmd
|
||||
+ opts +
|
||||
+ [encodeArgument(o) for o in opts] +
|
||||
[encodeFilename(self._ffmpeg_filename_argument(out_path), True)])
|
||||
|
||||
if self._downloader.params.get('verbose', False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue