X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=animate.lua;fp=animate.lua;h=ae3ff24e464dd4dd6cf3c9b12f0106dbd91a07b3;hp=616c717f4eb51ff396a343b5a2759ef90faf35d8;hb=91317cd9a2f8bdd88ece2adc230a13f682651198;hpb=07083c8dfbbd4fe48e84d86ce8d7e44e0719b84a 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?")