Don't recode the video with m3u8 downloads (fixes #1741)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 9 Nov 2013 15:40:00 +0000 (16:40 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 9 Nov 2013 15:40:00 +0000 (16:40 +0100)
youtube_dl/FileDownloader.py

index 20f57b6bfeb3fce1ed6687e33b910ef1df336f36..35fa3ca614376d1dcd0b1274c780178e400f8e2d 100644 (file)
@@ -379,7 +379,8 @@ class FileDownloader(object):
         self.report_destination(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
         try:
             subprocess.call(['ffmpeg', '-h'], stdout=(open(os.path.devnull, 'w')), stderr=subprocess.STDOUT)