Command line that generate "beautiful" image based on noise generation. The idea is inspired by this blog post
zig build --release=fast run -- <filename_without_ext> <width> <height> <variant>This generates a JPEG image. variant is 1, 2, or 3.
Raw RGB frames are written to stdout, pipe them to ffmpeg to encode a video:
zig build --release=fast run -- video <width> <height> <variant> <fps> <total_frames> | \
ffmpeg -f rawvideo -pixel_format rgb24 -video_size <width>x<height> \
-framerate <fps> -i - -c:v libx264 -pix_fmt yuv420p output.mp4For example, a 10-second video at 30fps:
zig build --release=fast run -- video 1920 1080 1 30 300 | \
ffmpeg -f rawvideo -pixel_format rgb24 -video_size 1920x1080 \
-framerate 30 -i - -c:v libx264 -pix_fmt yuv420p output.mp4We use :
zig buildIt's a toy project. And I completly suck at Zig. So if you spot error, improvement comments are welcome.

