From 0ce7299350dc3f524fb866a1291e35e75b3f98ed Mon Sep 17 00:00:00 2001 From: Ivan Markin Date: Fri, 17 Feb 2023 13:12:00 +0100 Subject: [PATCH] Add ffmpeg script --- render/make_movie.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 render/make_movie.sh diff --git a/render/make_movie.sh b/render/make_movie.sh new file mode 100755 index 0000000..4688885 --- /dev/null +++ b/render/make_movie.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Run inside your directory with frames named `frame.000000.png`, and this will produce a movie movie.mp4 + +ffmpeg -vcodec png -framerate 14 -i frame.%06d.png -pix_fmt yuv420p -vcodec libx264 -crf 17 -threads 64 -preset fast -y -vf "crop=trunc(iw/2)*2:trunc(ih/2)*2" movie.mp4 \ No newline at end of file