fix resize

This commit is contained in:
Adrien Beudin 2016-05-02 09:57:18 +02:00
parent bbeeac535c
commit f7d6cc2c3e

View File

@ -64,7 +64,7 @@ class Video(object):
} }
warning("Generation", source) warning("Generation", source)
if options.get("resize"): if options.get("resize"):
command = "ffmpeg {loglevel} -i {source} {resolution} -vframes 1 -y {target}".format(**ffmpeg_switches) command = "ffmpeg {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches)
os.system(command) os.system(command)
else: else:
command = "ffmpeg {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 1 -an {format} -y {target}".format(**ffmpeg_switches) command = "ffmpeg {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 1 -an {format} -y {target}".format(**ffmpeg_switches)