aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/downloader/hls.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-06 12:14:26 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-06 12:14:26 +0100
commit5f9b83944da7c531f82ace0ce9275c2661e7187e (patch)
tree82b90a6530efef3ee83158125831519ec94d36d2 /youtube_dl/downloader/hls.py
parentf6735be4da1da24be3a2d90461069d192900838a (diff)
downloadyoutube-dl-5f9b83944da7c531f82ace0ce9275c2661e7187e.zip
youtube-dl-5f9b83944da7c531f82ace0ce9275c2661e7187e.tar.gz
youtube-dl-5f9b83944da7c531f82ace0ce9275c2661e7187e.tar.bz2
[ffmpeg] Improve version check and call it from hls (Fixes #4377)
Diffstat (limited to 'youtube_dl/downloader/hls.py')
-rw-r--r--youtube_dl/downloader/hls.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index 954beff..ad26cfa 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -4,6 +4,7 @@ import os
import re
import subprocess
+from ..postprocessor.ffmpeg import FFmpegPostProcessor
from .common import FileDownloader
from ..utils import (
compat_urlparse,
@@ -32,6 +33,9 @@ class HlsFD(FileDownloader):
return False
cmd = [program] + args
+ ffpp = FFmpegPostProcessor(downloader=self)
+ ffpp.check_version()
+
retval = subprocess.call(cmd)
if retval == 0:
fsize = os.path.getsize(encodeFilename(tmpfilename))