summaryrefslogtreecommitdiff
path: root/ffmpeg-shadertoy/ffmpeg-shadertoy.c
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-06-07 12:24:52 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-06-07 12:24:52 -0500
commite16d66507626bff5788056cf69b0364d1733dbe7 (patch)
treede808125c31713ba138b7b723d3101fa10ffb1c4 /ffmpeg-shadertoy/ffmpeg-shadertoy.c
parent045bdf8ceacb5b4b71a7b779ef4ab6dc7d49ba53 (diff)
Diffstat (limited to 'ffmpeg-shadertoy/ffmpeg-shadertoy.c')
-rw-r--r--ffmpeg-shadertoy/ffmpeg-shadertoy.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/ffmpeg-shadertoy/ffmpeg-shadertoy.c b/ffmpeg-shadertoy/ffmpeg-shadertoy.c
index 52305ed..0051db7 100644
--- a/ffmpeg-shadertoy/ffmpeg-shadertoy.c
+++ b/ffmpeg-shadertoy/ffmpeg-shadertoy.c
@@ -1,3 +1,26 @@
+// ================================================================================================
+// Basic offline shadertoy rendererer. Textures are not supported.
+//
+// Usage:
+// $ ffmpeg-shadertoy <input.glsl> <output> -w <width> -h <height> -r <fps> -t <length>
+//
+// For example, download https://www.shadertoy.com/view/Ms2SD1 as seascape.glsl and run:
+// $ ffmpeg-shadertoy ./seascape.glsl -w 1920 -h 1080 -r 60 seascape.mkv
+//
+// Changelog:
+// 5/15/2026: Initial release
+//
+// License:
+// SPDX-License-Identifier: 0BSD
+// Copyright (c) 2026 Hunter Kvalevog
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE.
+// ================================================================================================
+
#include <SDL3/SDL.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>