aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-09 16:40:00 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-09 16:40:00 +0100
commitbe07375b66df1a803eab27fee7112214f1f2b392 (patch)
tree539e83c6aa39213574fd5be1aff975c9cc783c41 /youtube_dl
parentdd5bcdc4c9cad0ee7e2d61343129ee1111048189 (diff)
downloadyoutube-dl-be07375b66df1a803eab27fee7112214f1f2b392.zip
youtube-dl-be07375b66df1a803eab27fee7112214f1f2b392.tar.gz
youtube-dl-be07375b66df1a803eab27fee7112214f1f2b392.tar.bz2
Don't recode the video with m3u8 downloads (fixes #1741)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/FileDownloader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index 20f57b6..35fa3ca 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -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)