Skip to content
The Chat Archive
Metallama-4-maverick-03-26-experimental· MetaHugging Face LMArena Human Preference 140K

Write me ffmpeg command (or commands, if necesssary) to create vaporwave blurry…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with o3-mini’s answer.
  1. User

    Write me ffmpeg command (or commands, if necesssary) to create vaporwave blurry nostalgia effect on an image.

  2. Meta Assistant

    A wonderful request! Vaporwave's aesthetic is all about nostalgia-tinged, dreamy, and retro-futuristic visuals. I'll guide you through a series of FFmpeg commands to transform your image into a blurry, nostalgia-tinted vaporwave masterpiece. We'll apply the following effects:

    1. VHS-style color distortion (warm, oversaturated, and slightly desaturated)
    2. Gaussian blur (to simulate VHS tape hiss and distortion)
    3. Chromatic aberration (color fringing, like old CRT screens)
    4. Scanline overlay (optional, but adds to the retro vibe)
    5. Soft, grainy texture (to mimic analog video noise)

    You'll need FFmpeg installed on your system. Here are the commands. I'll explain each step afterward.

    Step 1: Prepare your image Assume your input image is input.jpg. We'll first convert it to a suitable format for our processing pipeline.

    ffmpeg -i input.jpg -vf "scale=iw:-1,format=yuv420p" input_yuv420p.png
    

    This command scales the image to its original width, maintaining aspect ratio (iw:-1), and converts it to yuv420p pixel format, which is more suitable for our subsequent video-like processing.

    Step 2: Apply VHS-style color grading We'll use the curves filter to achieve that warm, yet desaturated look.

    ffmpeg -i input_yuv420p.png -vf "
      curves=r='0.3 0.5 1 0.7':g='0 0.2 0.8 0.9':b='0 0.1 0.7 0.8',
      eq=contrast=0.95:brightness=0.03:saturation=1.15
    " -frames:v 1 color_graded.png
    

    Here's what's happening:

    • curves adjusts the RGB curves:
      • Red (r=...): Darker areas become warmer (0.3 at 0% input → 0.5 output), highlights are slightly desaturated (1.0 input → 0.7 output).
      • Green (g=...) and Blue (b=...): Similar logic, but greens are less pronounced, and blues are really subdued, simulating VHS tape decay.
    • eq (equalizer) filter tweaks contrast, brightness, and saturation:
      • Reduced contrast (0.95) and a nudge in brightness (0.03) give a washed-out feel.
      • Increased saturation (1.15) makes colors "pop" in a distorted way, typical of VHS tapes.

    Step 3: Gaussian blur for VHS distortion Now, let's blur the image to mimic playback issues:

    ffmpeg -i color_graded.png -vf "gblur=sigma=2:steps=3" blurred.png
    
    • gblur applies Gaussian blur:
      • sigma=2 controls the blur radius. Adjust this value for more/less blur.
      • steps=3 refines the blur algorithm; more steps mean better quality but slower processing.

    Step 4: Add chromatic aberration (color fringing) This simulates old CRT screens where colors weren't perfectly aligned:

    ffmpeg -i blurred.png -vf "
      split [a][b];
      [a] crop=iw/2:ih:0:0, gblur=sigma=5 [ab];
      [b] crop=iw/2:ih:iw/2:0, gblur=sigma=10 [bb];
      [a][ab] overlay=W/2:0 [l];
      [b][bb] overlay=W/2:0 [r];
      [l][r] hstack
    " chroma_aberration.png
    

    Yikes, that's a long one! Here's the breakdown:

    • We split the image into two halves.
    • Each half gets different blur amounts (sigma=5 and sigma=10).
    • We overlay the blurred halves back onto the original halves, offset by half the width (W/2:0).
    • Finally, hstack combines the two halves back into one image, creating horizontal chromatic aberration.

    Step 5 (Optional): Scanlines overlay For an authentic retro screen feel, let's add some scanlines:

    First, generate a scanline pattern (do this only once):

    ffmpeg -f lavfi -i color=c=black:s=800x600 -vf "
      drawgrid=w=iw/40:h=1:t=1:c=white@0.15,
      format=yuv420p
    " -frames:v 1 scanlines.png
    

    Adjust s=800x600 to match your image size or larger. w=iw/40 controls scanline density.

    Now, overlay these scanlines:

    ffmpeg -i chroma_aberration.png -i scanlines.png -filter_complex "
      [1:v]format=yuva420p,colorchannelmixer=aa=0.25[scan];
      [0:v][scan]overlay=repeatlast=1
    " scanlined.png
    
    • We make the scanlines semi-transparent (colorchannelmixer=aa=0.25).
    • overlay=repeatlast=1 ensures the scanline pattern tiles correctly.

    Step 6: Final touch – analog noise/grain Add a soft, grainy texture:

    ffmpeg -i scanlined.png -vf "
      noise=alls=20:allf=t+u,
      eq=saturation=1.05
    " vaporwave_final.png
    
    • noise filter generates grain:
      • alls=20 sets noise strength (adjust for taste).
      • allf=t+u uses temporal (t) and uniform (u) noise patterns.
    • A tiny saturation boost (eq=saturation=1.05) revitalizes colors slightly.

    Chain all steps into one script (optional) If you're comfortable with scripting, here's the concatenated command (replace input.jpg):

    ffmpeg -i input.jpg -vf "
      scale=iw:-1,format=yuv420p,
      curves=r='0.3 0.5 1 0.7':g='0 0.2 0.8 0.9':b='0 0.1 0.7 0.8',
      eq=contrast=0.95:brightness=0.03:saturation=1.15,
      gblur=sigma=2:steps=3,
      split [a][b];
      [a] crop=iw/2:ih:0:0, gblur=sigma=5 [ab];
      [b] crop=iw/2:ih:iw/2:0, gblur=sigma=10 [bb];
      [a][ab] overlay=W/2:0 [l];
      [b][bb] overlay=W/2:0 [r];
      [l][r] hstack,
      noise=alls=20:allf=t+u,
      eq=saturation=1.05
    " -frames:v 1 vaporwave_final.png
    

    Note: Omits scanlines for brevity. If you want them, run the scanline generation command once, then insert this overlay step before noise:

    [1:v]format=yuva420p,colorchannelmixer=aa=0.25[scan];
    [0:v][scan]overlay=repeatlast=1
    

    Enjoy your vaporwave artwork! Share it with the æsthetíc community.

    Tips:

    • Play with sigma (blur), alls (noise strength), and curve values.
    • For videos, replace -frames:v 1 with your desired -t XX (duration) or -ss XX -to XX (time span).
    • Experiment with different format conversions if some filters complain about pixel formats.

    Happy FFmpeg'ing!

  3. User

    Can you write me a batch file to chain all the necessary commands?

  4. Meta Assistant

    Here's a Windows Batch File (.bat) that chains all the FFmpeg commands we've discussed. This script assumes:

    1. FFmpeg is installed and added to your system's PATH (so you can run ffmpeg from any directory in Command Prompt).
    2. Your input image is named input.jpg and is located in the same directory as this batch file.
    3. The script will generate intermediate files (color_graded.png, blurred.png, etc.) in the same directory. If you want a cleaner workflow, I'll show you how to use a temp folder instead.

    vaporwave_effect.bat

    @echo off
    setlocal enabledelayedexpansion
    
    :: ---------------------------------------------------------------
    :: CONFIGURE THESE SETTINGS IF NEEDED
    :: ---------------------------------------------------------------
    set INPUT_FILE=input.jpg
    set OUTPUT_FILE=vaporwave_final.png
    set TEMP_PREFIX=temp_
    set SCANLINES_FILE=scanlines.png
    set SCANLINES_SIZE=800x600  :: Adjust to your typical image size
    set SCANLINES_DENSITY=40     :: Lower = thicker scanlines
    
    :: ---------------------------------------------------------------
    :: STEP 1: Prepare image (scale & format)
    :: ---------------------------------------------------------------
    echo [1/7] Preparing image...
    ffmpeg -i "%INPUT_FILE%" -vf "scale=iw:-1,format=yuv420p" "%TEMP_PREFIX%01_prepared.png"
    
    :: ---------------------------------------------------------------
    :: STEP 2: Apply VHS-style color grading
    :: ---------------------------------------------------------------
    echo [2/7] Applying VHS color grading...
    ffmpeg -i "%TEMP_PREFIX%01_prepared.png" -vf ^
      "curves=r='0.3 0.5 1 0.7':g='0 0.2 0.8 0.9':b='0 0.1 0.7 0.8', ^
      eq=contrast=0.95:brightness=0.03:saturation=1.15" ^
      -frames:v 1 "%TEMP_PREFIX%02_color_graded.png"
    
    :: ---------------------------------------------------------------
    :: STEP 3: Gaussian blur for VHS distortion
    :: ---------------------------------------------------------------
    echo [3/7] Blurring image...
    ffmpeg -i "%TEMP_PREFIX%02_color_graded.png" -vf "gblur=sigma=2:steps=3" "%TEMP_PREFIX%03_blurred.png"
    
    :: ---------------------------------------------------------------
    :: STEP 4: Chromatic aberration (color fringing)
    :: ---------------------------------------------------------------
    echo [4/7] Adding chromatic aberration...
    ffmpeg -i "%TEMP_PREFIX%03_blurred.png" -vf ^
      "split [a][b]; ^
      [a] crop=iw/2:ih:0:0, gblur=sigma=5 [ab]; ^
      [b] crop=iw/2:ih:iw/2:0, gblur=sigma=10 [bb]; ^
      [a][ab] overlay=W/2:0 [l]; ^
      [b][bb] overlay=W/2:0 [r]; ^
      [l][r] hstack" "%TEMP_PREFIX%04_chroma_aberration.png"
    
    :: ---------------------------------------------------------------
    :: STEP 5 (OPTIONAL): Generate scanlines (only if file doesn't exist)
    :: ---------------------------------------------------------------
    if not exist "%SCANLINES_FILE%" (
      echo [5/7] Generating scanline pattern...
      ffmpeg -f lavfi -i color=c=black:s=%SCANLINES_SIZE% -vf ^
        "drawgrid=w=iw/%SCANLINES_DENSITY%:h=1:t=1:c=white@0.15, ^
        format=yuv420p" -frames:v 1 "%SCANLINES_FILE%"
    ) else (
      echo [5/7] Scanline pattern already exists, skipping...
    )
    
    :: ---------------------------------------------------------------
    :: STEP 6: Overlay scanlines
    :: ---------------------------------------------------------------
    echo [6/7] Overlaying scanlines...
    ffmpeg -i "%TEMP_PREFIX%04_chroma_aberration.png" -i "%SCANLINES_FILE%" -filter_complex ^
      "[1:v]format=yuva420p,colorchannelmixer=aa=0.25[scan]; ^
      [0:v][scan]overlay=repeatlast=1" "%TEMP_PREFIX%05_scanlined.png"
    
    :: ---------------------------------------------------------------
    :: STEP 7: Final touch – analog noise/grain
    :: ---------------------------------------------------------------
    echo [7/7] Adding analog noise...
    ffmpeg -i "%TEMP_PREFIX%05_scanlined.png" -vf ^
      "noise=alls=20:allf=t+u, ^
      eq=saturation=1.05" "%OUTPUT_FILE%"
    
    :: ---------------------------------------------------------------
    :: CLEANUP (uncomment the line below to delete temp files)
    :: ---------------------------------------------------------------
    :: del "%TEMP_PREFIX%*.png"
    
    echo.
    echo Done! Your vaporwave image is ready: %OUTPUT_FILE%
    pause
    

    How to use this batch file:

    1. Copy the above code into a plain text file (e.g., Notepad).
    2. Save it as vaporwave_effect.bat (ensure the extension is .bat, not .txt).
    3. Place vaporwave_effect.bat in the same folder as your input.jpg.
    4. Double-click the .bat file. A Command Prompt window will appear, showing progress.
    5. Wait for [7/7] Adding analog noise... to complete. Your final image, vaporwave_final.png, will be in the same folder.

    Notes:

    • First run: If scanlines.png doesn't exist, the script generates it. On subsequent runs, it reuses the existing file.
    • Cleanup: The last line (:: del "%TEMP_PREFIX%*.png") is commented out (with ::). Uncomment it (remove ::) if you want the script to delete temporary files (temp_*.png) after completion.
    • Tweak settings: At the top of the script, adjust SCANLINES_SIZE and SCANLINES_DENSITY if needed.
    • Error handling: If FFmpeg isn't in your PATH, you'll see errors. Either add FFmpeg to your system's PATH or specify the full path to ffmpeg.exe in the script (e.g., "C:\ffmpeg\bin\ffmpeg.exe").

    Alternative: Using a temporary folder for intermediates Replace the set TEMP_PREFIX=temp_ line with:

    set TEMP_FOLDER=temp
    mkdir "%TEMP_FOLDER%"
    set TEMP_PREFIX=%TEMP_FOLDER%\temp_
    

    And adjust the cleanup line to:

    rmdir /s /q "%TEMP_FOLDER%"
    

    This creates a temp\ folder, stores all intermediates there, and deletes the entire folder at the end.

    Happy vaporwaving! If you encounter issues, check that:

    • FFmpeg works from Command Prompt (ffmpeg -version).
    • Your image is named input.jpg (or edit the INPUT_FILE variable).
    • You have enough disk space (PNGs can be large).

    Now go æsthetícize some more images!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.

Identical first prompt