mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-29 02:25:29 +02:00
Don't recode the video with m3u8 downloads (fixes #1741)
This commit is contained in:
parent
dd5bcdc4c9
commit
be07375b66
@ -379,7 +379,8 @@ def _download_m3u8_with_ffmpeg(self, filename, url):
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user