Skip to main content
Field notes
EssayNov 30, 20269 min read

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?​

EffectFFmpeg alone?Technology
Instagram-style color filtersYesLUT, curves
Vintage photographyYesColor balance, noise
Cinematic effectsYesLUT, contrast
Cartoon effectsPartiallyEdge detection, color quantization
Soft skin effectPartiallyBilateral smoothing
Beauty filtersPartiallyFFmpeg + MediaPipe
Virtual makeupNoMediaPipe + WebGL
Dog ears and noseNoMediaPipe + overlays
Face slimmingNoMediaPipe + mesh warping
Enlarged eyesNoMediaPipe + mesh warping
Background replacementPartiallyImage segmentation + FFmpeg
Animated stickersYesOverlay
Portrait background blurPartiallyImage 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.

How to Pose for Pictures: The Ultimate Guide | PetaPixel

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

Birthday in Montpellier Shot on Film - Independent People

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

Integrating AI Generations into Your Photography Workflow with Grok Imagine | by Carolina Delgado | Feb, 2026 | Medium

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

Add a Dreamy Filter to Your Image Online Free | Pokecut

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

Pin on Photography Inspirations

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

Portfolio | Discover Stunning Photography Today — Your Site Title

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.

Select a filter preset
Generated FFmpeg command
ffmpeg -i input.jpg -vf "eq=brightness=0.00:contrast=1.00:saturation=1.00" -frames:v 1 output.jpg
note

The 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:

Original filter applied to a personal photo
Original
Golden Hour filter applied to a personal photo
Golden Hour
Vintage Film filter applied to a personal photo
Vintage Film
Cinematic filter applied to a personal photo
Cinematic
Teal & Orange (LUT) filter applied to a personal photo
Teal & Orange (LUT)
Soft Beauty filter applied to a personal photo
Soft Beauty
Dramatic B&W filter applied to a personal photo
Dramatic B&W
Pastel Pink filter applied to a personal photo
Pastel Pink

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.

René Schädler | Featured Photographer | On Landscape

Original

Mission Travel Tours | Destinations

Cinematic LUT look

Fall roadtrip through Glacier National Park — Jeremiah & Rachel Photography

Vintage LUT look

The Great Aurora Chase: A Local’s Guide to Capturing the Northern Ligh

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.

Panduan deteksi tempat terkenal wajah untuk Android  |  Google AI Edge  |  Google AI for Developers

Face detection

Wish Upon A Scam | The FADER

Virtual accessories

We Asked Dermatologists to Evaluate TikTok's Lip Filler Filter—Here's What They Said | Marie Claire

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.

I would separate facial detection, filter definitions, preview and final rendering.

Architecture diagram: photo, video or camera input goes to a filter orchestrator, then to color filter and face lens engines. Their outputs are composited for live preview and final rendering.

ComponentTechnology
FrontendReact + TypeScript
Live previewCanvas / WebGL
Facial recognition of featuresMediaPipe Tasks Vision
Background segmentationMediaPipe Image Segmenter
Face deformationWebGL / OpenCV
RenderingFFmpeg
Filter definitionsJSON / YAML
BackendBun or Node.js
Filter assetsLocal 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​

ProjectPurpose
FFmpeg FiltersMedia processing
MediaPipeFace detection and segmentation
OpenCVImage manipulation
PixiJSGPU-accelerated 2D rendering
Three.js3D augmented reality objects
FFmpeg.wasmBrowser-based FFmpeg processing
GPUImageGPU-based image filters for Apple platforms
Newsletter

Stay close to the experiments

Get new essays, practical guides, and hands-on field notes from La Rebelion Labs.