X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=animate.lua;h=ae3ff24e464dd4dd6cf3c9b12f0106dbd91a07b3;hb=HEAD;hp=616c717f4eb51ff396a343b5a2759ef90faf35d8;hpb=3955aa40277c4b86a43b21e78d55d2fea7b643ce;p=chaz%2Frasterize diff --git a/animate.lua b/animate.lua index 616c717..ae3ff24 100755 --- a/animate.lua +++ b/animate.lua @@ -109,7 +109,7 @@ X i = coroutine.yield() out:close() if 1 < supersample and - run("convert %s -scale %dx%d %s", filename, size.w, size.h, filename) ~= 0 then + not run("convert %s -scale %dx%d %s", filename, size.w, size.h, filename) then print() os.exit(1) end @@ -140,7 +140,7 @@ for render,frame in renderings() do render(frame) end print() -if run("ffmpeg -i frames/anim%%04d.bmp %s -y -an scene.avi", ffmpeg_opts) == 0 then +if run("ffmpeg -i frames/anim%%04d.bmp %s -y -an scene.avi", ffmpeg_opts) then print("Animation written to scene.avi.") else print("The animation could not be created. Is ffmpeg installed?")