From 5f82b129e085eb122b6129df36e45925f5b4546a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Sun, 26 Oct 2014 18:11:31 +0100 Subject: [PATCH] [ffmpeg] Also look into stderr for extracting the version At least with avconv 11, it will print 'avconv version 11, ..' to stderr, not stdout. --- youtube_dl/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index e13deab4b..19fc135dc 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -26,7 +26,7 @@ def get_version(executable): try: out, err = subprocess.Popen( [executable, '-version'], - stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() + stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate() except OSError: return False firstline = out.partition(b'\n')[0].decode('ascii', 'ignore')