diff options
author | remitamine <remitamine@gmail.com> | 2016-03-13 12:15:29 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-03-13 12:15:29 +0100 |
commit | a755f82549cb6bffd8ff9545e0b0a4883b7422d2 (patch) | |
tree | 40776d9e03ad149e579cf8b7b72ad6462ac8e9bb /youtube_dl/downloader | |
parent | f34294fa0c0097cea7f6388d5d691d5a54950491 (diff) |
[ffmpeg] convert format ext to ffmpeg output formats codes
Diffstat (limited to 'youtube_dl/downloader')
-rw-r--r-- | youtube_dl/downloader/external.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/downloader/external.py b/youtube_dl/downloader/external.py index a4fdf1af8..fcb956e6c 100644 --- a/youtube_dl/downloader/external.py +++ b/youtube_dl/downloader/external.py @@ -6,7 +6,7 @@ import sys import re from .common import FileDownloader -from ..postprocessor.ffmpeg import FFmpegPostProcessor +from ..postprocessor.ffmpeg import FFmpegPostProcessor, EXT_TO_OUT_FORMATS from ..compat import compat_str from ..utils import ( cli_option, @@ -197,7 +197,7 @@ class FFmpegFD(ExternalFD): else: args += ['-f', 'mp4', '-bsf:a', 'aac_adtstoasc'] else: - args += ['-f', info_dict['ext']] + args += ['-f', EXT_TO_OUT_FORMATS.get(info_dict['ext'], info_dict['ext'])] args = [encodeArgument(opt) for opt in args] args.append(encodeFilename(ffpp._ffmpeg_filename_argument(tmpfilename), True)) |