diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-06-07 12:24:52 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-06-07 12:24:52 -0500 |
| commit | e16d66507626bff5788056cf69b0364d1733dbe7 (patch) | |
| tree | de808125c31713ba138b7b723d3101fa10ffb1c4 | |
| parent | 045bdf8ceacb5b4b71a7b779ef4ab6dc7d49ba53 (diff) | |
| -rw-r--r-- | ffmpeg-shadertoy/.gitignore | 2 | ||||
| -rw-r--r-- | ffmpeg-shadertoy/ffmpeg-shadertoy.c | 23 |
2 files changed, 25 insertions, 0 deletions
diff --git a/ffmpeg-shadertoy/.gitignore b/ffmpeg-shadertoy/.gitignore new file mode 100644 index 0000000..c3f1b75 --- /dev/null +++ b/ffmpeg-shadertoy/.gitignore @@ -0,0 +1,2 @@ +*.glsl +*.mkv 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> |