FFmpegPostProcessor: print the command line used if the --verbose option is given
[youtube-dl] / youtube_dl / PostProcessor.py
index fbf8a7f98ffc67792c48de2cb21a1536ffba08ac..0479591f00c49fb1a4e2205c7cf4dc805ee04122 100644 (file)
@@ -83,6 +83,8 @@ class FFmpegPostProcessor(PostProcessor):
                + opts +
                [encodeFilename(self._ffmpeg_filename_argument(out_path))])
 
+        if self._downloader.params.get('verbose', False):
+            self._downloader.to_screen(u'[debug] ffmpeg command line: %s' % shell_quote(cmd))
         p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
         stdout,stderr = p.communicate()
         if p.returncode != 0: