1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-25 09:11:34 +00:00

[ffmpeg] Also look into stderr for extracting the version

At least with avconv 11, it will print 'avconv version 11, ..' to stderr, not stdout.
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-10-26 18:11:31 +01:00
parent 64269e4d01
commit 5f82b129e0

View file

@ -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')