Skip to content

Instantly share code, notes, and snippets.

@sam210723
Last active June 13, 2021 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sam210723/f455b3b95b0f6a9edae5a083ee8fcab4 to your computer and use it in GitHub Desktop.
Save sam210723/f455b3b95b0f6a9edae5a083ee8fcab4 to your computer and use it in GitHub Desktop.
Waveform and Vectorscope monitor using FFmpeg video filters
@echo off
REM https://ffmpeg.org/ffmpeg-filters.html
REM https://trac.ffmpeg.org/wiki/FancyFilteringExamples
ffplay -window_title "FFmpeg Waveform and Vectorscope" -i %1 -vf "split=4[vid][vec][wavh][wavv],[vec]vectorscope=mode=color3:graticule=green[vec],[wavh]waveform=mode=column:graticule=green:components=1:display=overlay[wavh],[wavv]waveform=mode=row:components=1:display=overlay[wavv],[vid][wavh]vstack[s1],[wavv][vec]vstack[s2],[s1][s2]hstack[out]"
#!/bin/bash
# https://ffmpeg.org/ffmpeg-filters.html
# https://trac.ffmpeg.org/wiki/FancyFilteringExamples
ffplay -window_title "FFmpeg Waveform and Vectorscope" -i $1 -vf "split=4[vid][vec][wavh][wavv],[vec]vectorscope=mode=color3:graticule=green[vec],[wavh]waveform=mode=column:graticule=green:components=1:display=overlay[wavh],[wavv]waveform=mode=row:components=1:display=overlay[wavv],[vid][wavh]vstack[s1],[wavv][vec]vstack[s2],[s1][s2]hstack[out]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment