Browse Source

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

rtmp_test
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
be07375b66
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/FileDownloader.py

+ 2
- 1
youtube_dl/FileDownloader.py View 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)


Loading…
Cancel
Save