]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ffmpeg] Improve format merging (Closes #3935)
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 13 Oct 2014 08:12:43 +0000 (10:12 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 13 Oct 2014 08:12:43 +0000 (10:12 +0200)
youtube_dl/postprocessor/ffmpeg.py

index 8c5f7c43b75b17466a91a2b54c928ec8ca2298f3..6f010a9c782181fbeae23be7e5a4bd23b03a0a81 100644 (file)
@@ -487,7 +487,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
 class FFmpegMergerPP(FFmpegPostProcessor):
     def run(self, info):
         filename = info['filepath']
-        args = ['-c', 'copy']
+        args = ['-c', 'copy', '-map', '0:v:0', '-map', '1:a:0', '-shortest']
         self._downloader.to_screen(u'[ffmpeg] Merging formats into "%s"' % filename)
         self.run_ffmpeg_multiple_files(info['__files_to_merge'], filename, args)
         return True, info