Преглед изворни кода

[ffmpeg] Also look into stderr for extracting the version

At least with avconv 11, it will print 'avconv version 11, ..' to stderr, not stdout.
Jaime Marquínez Ferrándiz пре 11 година
родитељ
комит
5f82b129e0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      youtube_dl/postprocessor/ffmpeg.py

+ 1 - 1
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')