Merge remote-tracking branch 'origin/master'
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 16 Feb 2015 03:09:10 +0000 (04:09 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 16 Feb 2015 03:09:10 +0000 (04:09 +0100)
1  2 
youtube_dl/postprocessor/ffmpeg.py

index 504a71193661a2a9537e3cdd121ca1a434d7a8bf,5238ce5340e6ea641aa09d54671057c337704485..16babf6a58be03c13b4be4fa7d6bf05281f28c81
@@@ -174,12 -131,10 +174,12 @@@ class FFmpegExtractAudioPP(FFmpegPostPr
              raise PostProcessingError('ffprobe or avprobe not found. Please install one.')
          try:
              cmd = [
 -                encodeFilename(self._probe_executable, True),
 +                encodeFilename(self.probe_executable, True),
                  encodeArgument('-show_streams'),
                  encodeFilename(self._ffmpeg_filename_argument(path), True)]
-                 self._downloader.to_screen('[debug] ffprobe command line: %s' % shell_quote(cmd))
-             handle = subprocess.Popen(cmd, stderr=compat_subprocess_get_DEVNULL(), stdout=subprocess.PIPE)
 +            if self._downloader.params.get('verbose', False):
++                self._downloader.to_screen('[debug] %s command line: %s' % (self.basename, shell_quote(cmd)))
+             handle = subprocess.Popen(cmd, stderr=compat_subprocess_get_DEVNULL(), stdout=subprocess.PIPE, stdin=subprocess.PIPE)
              output = handle.communicate()[0]
              if handle.wait() != 0:
                  return None