[fix] bad error message
This commit is contained in:
parent
2221c6b4d6
commit
286b4399a0
@ -74,14 +74,14 @@ class Video(object):
|
|||||||
|
|
||||||
if options.get("resize"):
|
if options.get("resize"):
|
||||||
command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches)
|
command = "{binary} {loglevel} -i {source} {resize} -vframes 1 -y {target}".format(**ffmpeg_switches)
|
||||||
error(os.system(command) == 0, "gm command failed")
|
error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"])
|
||||||
else:
|
else:
|
||||||
command = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 1 -an {format} -y {target}".format(**ffmpeg_switches)
|
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)
|
command2 = "{binary} {loglevel} -i {source} {resolution} {preselect} {bitrate} -pass 2 -acodec libvorbis -ab 100k {format} -y {target}".format(**ffmpeg_switches)
|
||||||
print(command)
|
print(command)
|
||||||
error(os.system(command) == 0, "gm command failed")
|
error(os.system(command) == 0, "%s command failed" % ffmpeg_switches["binary"])
|
||||||
print(command2)
|
print(command2)
|
||||||
error(os.system(command2) == 0, "gm command failed")
|
error(os.system(command2) == 0, "%s command failed" % ffmpeg_switches["binary"])
|
||||||
|
|
||||||
CACHE.cache_picture(source, target, options)
|
CACHE.cache_picture(source, target, options)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user