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
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?")