[mod] fallback on avconv for video conversion

This commit is contained in:
Laurent Peuch 2016-05-04 10:45:26 +02:00
parent 35d2b54c8a
commit ddee3e85c2

View File

@ -196,6 +196,10 @@ def main():
"please install the 'graphicsmagick' package.\n")
if os.system("which " + conv_video +" > /dev/null") != 0:
if conv_video == "ffmpeg" and os.system("which avconv > /dev/null") == 0:
SETTINGS["ffmpeg"]["binary"] = "avconv"
warning("I couldn't locate ffmpeg but I could find avconv, switching to avconv for video conversion")
else:
warning("I can't locate the "+ conv_video +" binary, "
"please install the '" + conv_video + "' package.\n")
warning("I won't be able to encode video and I will stop if I encounter a video to convert")