浏览代码

Don't recode the video with m3u8 downloads (fixes #1741)

Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
be07375b66
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/FileDownloader.py

+ 2 - 1
youtube_dl/FileDownloader.py

@@ -379,7 +379,8 @@ class FileDownloader(object):
         self.report_destination(filename)
         self.report_destination(filename)
         tmpfilename = self.temp_name(filename)
         tmpfilename = self.temp_name(filename)
 
 
-        args = ['ffmpeg', '-y', '-i', url, '-f', 'mp4', tmpfilename]
+        args = ['ffmpeg', '-y', '-i', url, '-f', 'mp4', '-c', 'copy',
+            '-absf', 'aac_adtstoasc', tmpfilename]
         # Check for ffmpeg first
         # Check for ffmpeg first
         try:
         try:
             subprocess.call(['ffmpeg', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)
             subprocess.call(['ffmpeg', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)