From 605545b8d1673f45328865a47e9ddd574a50d639 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 4 May 2016 09:41:22 +0200 Subject: [PATCH] [mod] display shell command used --- prosopopee/prosopopee.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prosopopee/prosopopee.py b/prosopopee/prosopopee.py index daeca00..944d330 100644 --- a/prosopopee/prosopopee.py +++ b/prosopopee/prosopopee.py @@ -72,11 +72,14 @@ class Video(object): if options.get("resize"): command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches) + print(command) os.system(command) else: command = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 1 -an {format} -y {target}".format(**ffmpeg_switches) command2 = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 2 -acodec libvorbis -ab 100k {format} -y {target}".format(**ffmpeg_switches) + print(command) os.system(command) + print(command2) os.system(command2) CACHE.cache_picture(source, target, options) @@ -128,6 +131,7 @@ class Image(object): } command = "gm convert {source} {auto-orient} {strip} {quality} {resize} {target}".format(**gm_switches) warning("Generation", source) + print(command) os.system(command) CACHE.cache_picture(source, target, options) else: