https://github.com/ryanfb/docker_ffmpeg-shadertoy
Dockerfile for FFmpeg with GLSL shadertoy filter support
https://github.com/ryanfb/docker_ffmpeg-shadertoy
Last synced: 4 months ago
JSON representation
Dockerfile for FFmpeg with GLSL shadertoy filter support
- Host: GitHub
- URL: https://github.com/ryanfb/docker_ffmpeg-shadertoy
- Owner: ryanfb
- License: mit
- Created: 2023-05-24T01:04:16.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-24T01:06:20.000Z (about 3 years ago)
- Last Synced: 2025-06-18T08:07:01.435Z (12 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker_ffmpeg-shadertoy
Dockerfile for [ffmpeg_shadertoy_filter](https://gitlab.com/kriwkrow/ffmpeg_shadertoy_filter) with `xfvb` and Mesa rendering configured.
What's this mean? You can run FFmpeg with GLSL shadertoy filters inside a headless Docker container with software rendering. Combine with [`ffmpeg-gl-transition`](https://github.com/transitive-bullshit/ffmpeg-gl-transition) for GLSL transitions between videos for extra fun.
## Usage
Clone this repository then:
docker build -t ffmpeg-shadertoy .
docker run -ti -v $(pwd):/data ffmpeg-shadertoy /bin/bash
xvfb-run ./ffmpeg -i /data/input.mp4 -vf "shadertoy=example/shader.glsl" -c:v libx264 -preset slow -crf 25 -f mp4 -c:a copy -y /data/output.mp4
Try out other shaders from [Shadertoy](https://www.shadertoy.com/), experiment and enjoy!