aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/postprocessor
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2015-05-14 15:18:58 +0600
committerSergey M․ <[email protected]>2015-05-14 15:18:58 +0600
commit98b8ec8616611194dee77dc6ad88303bae72ce6d (patch)
treecf48e43095537498b263ab76c3ab61f9429c3ff7 /youtube_dl/postprocessor
parent88f9d8748c19d1ee6a06e95eb5ed4dc31052e9ad (diff)
parent97fcf1bbd07ae0c5b6e530dcf2623d199452a76c (diff)
downloadyoutube-dl-98b8ec8616611194dee77dc6ad88303bae72ce6d.tar.gz
youtube-dl-98b8ec8616611194dee77dc6ad88303bae72ce6d.zip
Merge branch 'best-fallback-on-outdated-avconv' of https://github.com/dstftw/youtube-dl into dstftw-best-fallback-on-outdated-avconv
Conflicts: youtube_dl/YoutubeDL.py
Diffstat (limited to 'youtube_dl/postprocessor')
-rw-r--r--youtube_dl/postprocessor/ffmpeg.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
index 214de39f9..cc65b34e7 100644
--- a/youtube_dl/postprocessor/ffmpeg.py
+++ b/youtube_dl/postprocessor/ffmpeg.py
@@ -591,6 +591,23 @@ class FFmpegMergerPP(FFmpegPostProcessor):
os.rename(encodeFilename(temp_filename), encodeFilename(filename))
return info['__files_to_merge'], info
+ def can_merge(self):
+ # TODO: figure out merge-capable ffmpeg version
+ if self.basename != 'avconv':
+ return True
+
+ required_version = '10-0'
+ if is_outdated_version(
+ self._versions[self.basename], required_version):
+ warning = ('Your copy of %s is outdated and unable to properly mux separate video and audio files, '
+ 'youtube-dl will download single file media. '
+ 'Update %s to version %s or newer to fix this.') % (
+ self.basename, self.basename, required_version)
+ if self._downloader:
+ self._downloader.report_warning(warning)
+ return False
+ return True
+
class FFmpegFixupStretchedPP(FFmpegPostProcessor):
def run(self, info):