Video and Image Filters with No AI and Free
Learn how to create video and image filters using local tools without relying on AI or paid services.

You want to create image and video filters similar to those found on social media platforms, but without relying on AI or paid services. This guide will show you how to achieve that using local tools like FFmpeg and open-source technologies.
Yes! FFmpeg can be used as the foundation for a Snapchat-like photo and video filter engine. You don't necessarily need generative AI, expensive APIs, or cloud-based image processing services to achieve many of these effects.
However, there is an important distinction between Snapchat Filters and Lenses:
- Filters: Modify colors, brightness, saturation, textures, lighting, and the overall appearance of an image. FFmpeg can handle these natively.
- Lenses: Detect faces, modify facial features, add virtual makeup, replace backgrounds, or attach objects to a person's face. These require computer vision combined with FFmpeg or another rendering engine.
You could build a completely local, reusable, and deterministic photo filter engine using open-source technologies.
1. What kind of filters can you create with FFmpeg?
| Effect | FFmpeg alone? | Technology |
|---|---|---|
| Instagram-style color filters | Yes | LUT, curves |
| Vintage photography | Yes | Color balance, noise |
| Cinematic effects | Yes | LUT, contrast |
| Cartoon effects | Partially | Edge detection, color quantization |
| Soft skin effect | Partially | Bilateral smoothing |
| Beauty filters | Partially | FFmpeg + MediaPipe |
| Virtual makeup | No | MediaPipe + WebGL |
| Dog ears and nose | No | MediaPipe + overlays |
| Face slimming | No | MediaPipe + mesh warping |
| Enlarged eyes | No | MediaPipe + mesh warping |
| Background replacement | Partially | Image segmentation + FFmpeg |
| Animated stickers | Yes | Overlay |
| Portrait background blur | Partially | Image segmentation + FFmpeg |
FFmpeg already provides hundreds of filters that can be combined into reusable processing pipelines.
2. Creating photo filters using FFmpeg
Here are six examples you can experiment with immediately.
Golden Hour
Warmer colors, brighter skin tones and a sunset-like atmosphere.
ffmpeg -i input.jpg \
-vf "eq=brightness=0.05:saturation=1.3:contrast=1.1,colorbalance=rs=0.08:bs=-0.08" \
-frames:v 1 golden.jpg
Vintage Film
Faded colors, film grain and darker edges.
ffmpeg -i input.jpg \
-vf "eq=saturation=0.7:contrast=0.9,curves=preset=vintage,noise=alls=8:allf=t,vignette" \
-frames:v 1 vintage.jpg
Cinematic
Stronger contrast with teal shadows and warm highlights.
ffmpeg -i input.jpg \
-vf "eq=contrast=1.2:saturation=1.2,colorbalance=rs=-0.08:bs=0.1:rh=0.1:bh=-0.05" \
-frames:v 1 cinematic.jpg
Soft Beauty
General smoothing with a slightly brighter appearance.
ffmpeg -i input.jpg \
-vf "bilateral=sigmaS=5:sigmaR=0.1,eq=brightness=0.03:saturation=1.1" \
-frames:v 1 beauty.jpg
Dramatic Black & White
High contrast, monochrome photography.
ffmpeg -i input.jpg \
-vf "hue=s=0,eq=contrast=1.4,vignette" \
-frames:v 1 dramatic.jpg
Pastel Pink
Soft contrast and pink highlights.
ffmpeg -i input.jpg \
-vf "eq=brightness=0.06:contrast=0.85:saturation=0.8,colorbalance=rh=0.1:bh=0.05" \
-frames:v 1 pastel.jpg
The images above are visual references for the intended aesthetics, rather than actual outputs from these commands. The filter parameters are suggested starting points.
3. Interactive photo filter playground
You could expose the filter parameters through a UI and dynamically generate the corresponding FFmpeg commands.
Here is a browser-based prototype of that concept.
ffmpeg -i input.jpg -vf "eq=brightness=0.00:contrast=1.00:saturation=1.00" -frames:v 1 output.jpgThe presets are starting points using the controls above, not exact reproductions of the example commands. Replace input.jpg and output.jpg with your own file names before running the generated command.
I took one of my personal photos and applied different LUTs to demonstrate the effect. Here are the results:








4. The real opportunity: LUT-based filters
Instead of manually defining hundreds of FFmpeg commands, you can use Lookup Tables (LUTs).
LUTs are essentially reusable color transformation profiles. Professional photographers, filmmakers, and editing applications use them extensively.
Original
Cinematic LUT look
Vintage LUT look
Moody LUT look
FFmpeg natively supports 3D LUT files, including the popular .cube format.
ffmpeg -i input.jpg \
-vf "lut3d=file=cinematic.cube" \
-frames:v 1 output.jpg
The interesting part is that the exact same filter works with video:
ffmpeg -i input.mp4 \
-vf "lut3d=file=cinematic.cube" \
-c:a copy output.mp4
You could build a catalog of hundreds of filters without changing your application code.
filters/
├── cinematic/
│ ├── teal-orange.cube
│ └── hollywood.cube
├── vintage/
│ ├── retro-90s.cube
│ └── analog-film.cube
├── portrait/
│ ├── golden-hour.cube
│ └── warm-skin.cube
└── aesthetic/
├── pastel.cube
└── moody.cube
Adding new color filters becomes a matter of adding assets, not developing new algorithms.
5. How to create actual Snapchat-like face lenses
This is where things get more interesting.
Face detection
Virtual accessories
Virtual makeup
FFmpeg doesn't natively understand where your eyes, nose, mouth, or cheeks are.
For that, I would use Google MediaPipe.
MediaPipe Face Landmarker provides 478 three-dimensional facial landmarks and supports photos, videos, and live camera streams.
This allows your application to calculate:
- Eye position and distance.
- Nose and mouth coordinates.
- Face orientation and rotation.
- Facial expressions.
- Facial contours.
Then you can use these coordinates to position transparent PNGs, apply masks or deform specific facial regions.
Example: Virtual sunglasses
Once your application detects the face and calculates the correct position and size of the sunglasses, FFmpeg can render them.
ffmpeg -i portrait.jpg -i glasses.png \
-filter_complex \
"[1:v]scale=320:-1[glasses];[0:v][glasses]overlay=x=240:y=180" \
-frames:v 1 output.jpg
The coordinates and size in this example are hardcoded. MediaPipe would calculate them dynamically for each photo.
For advanced lenses, including face slimming, enlarged eyes or virtual makeup, I would use WebGL shaders or OpenCV for geometric transformations.
6. Recommended architecture
I would separate facial detection, filter definitions, preview and final rendering.
Recommended technology stack
| Component | Technology |
|---|---|
| Frontend | React + TypeScript |
| Live preview | Canvas / WebGL |
| Facial recognition of features | MediaPipe Tasks Vision |
| Background segmentation | MediaPipe Image Segmenter |
| Face deformation | WebGL / OpenCV |
| Rendering | FFmpeg |
| Filter definitions | JSON / YAML |
| Backend | Bun or Node.js |
| Filter assets | Local filesystem or object storage |
All of this can run locally without calling an external AI service.
7. Make filters declarative instead of hardcoded
This is probably the architectural approach I find most interesting: a filter-as-code engine.
Imagine defining a complete beauty filter using YAML:
id: natural-beauty
name: Natural Beauty
version: 1.0.0
input:
types:
- image
- video
parameters:
intensity:
type: number
min: 0
max: 1
default: 0.7
pipeline:
- type: face-detection
engine: mediapipe
- type: skin-mask
region: face
exclude:
- eyes
- lips
- eyebrows
- type: skin-smoothing
engine: ffmpeg
filter: bilateral
intensity: $intensity
- type: color-grading
engine: ffmpeg
lut: natural-beauty.cube
- type: sharpen
intensity: 0.2
output:
preserve-resolution: true
Or an augmented reality lens:
id: funny-dog
name: Funny Dog
pipeline:
- type: face-detection
engine: mediapipe
- type: overlay
asset: dog-ears.png
anchor: forehead
scale-relative-to: face-width
follow-rotation: true
- type: overlay
asset: dog-nose.png
anchor: nose-tip
scale-relative-to: nose-width
- type: color-grading
lut: playful.cube
These are proposed contracts for a custom engine, not formats natively supported by FFmpeg. Your orchestrator would translate them into the corresponding computer vision operations and FFmpeg filter graphs.
The benefit is that filters become:
- Reusable and composable.
- Portable between photos and videos.
- Version-controlled.
- Shareable and extensible.
- Predictable, without generative AI costs.
In summary
I wouldn't try to replicate Snapchat entirely. Instead, I would build a declarative, extensible Photo and Video Effects Engine.
The architectural principle would be:
FFmpeg for rendering + MediaPipe for understanding + WebGL for transformation + YAML for orchestration.
You could potentially use the same engine for photo editing, video post-production, virtual avatars, social media content creation, product photography and live camera effects.
And unlike a generative AI image editor, these operations can be repeatable, inexpensive, offline-capable and under the user's control.
The underlying technology is already available. The opportunity is in how you bring it together into a reusable system.
Given the open-source resources listed below, you can start building your own photo and video effects engine without relying on generative AI. Try it and let me know how it goes, or let me know if you run into any challenges and need guidance or if you would like me to create an example implementation.
Go Rebels! ✊🏽
Open-source resources
| Project | Purpose |
|---|---|
| FFmpeg Filters | Media processing |
| MediaPipe | Face detection and segmentation |
| OpenCV | Image manipulation |
| PixiJS | GPU-accelerated 2D rendering |
| Three.js | 3D augmented reality objects |
| FFmpeg.wasm | Browser-based FFmpeg processing |
| GPUImage | GPU-based image filters for Apple platforms |