Skip to content

A feature-rich command-line audio/video downloader

[downloader/hls] Don't let ffmpeg read from stdin (#8139)

Jaime Marquínez Ferrándiz3f17c357d995
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index b5a3e11676..d186d402d7 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -46,7 +46,7 @@ class HlsFD(FileDownloader):
self._debug_cmd(args)
- retval = subprocess.call(args)
+ retval = subprocess.call(args, stdin=subprocess.PIPE)
if retval == 0:
fsize = os.path.getsize(encodeFilename(tmpfilename))
self.to_screen('\r[%s] %s bytes' % (args[0], fsize))