Two more ways to plot left against right channel, compared with the dot vectorscope in avectorscope.sh. Polar mode folds the plot into a half-circle fan, like a hardware stereo goniometer. Lissajous XY plots L on X and R on Y, so tones trace spirograph-like loops. Drawing with lines instead of dots gives continuous, glowing traces.
Lower zoom suits loud material; raise it for quiet recordings.
The command
ffmpeg -i input.aiff \
-filter_complex "[0:a]avectorscope=size=1280x720:mode=polar:zoom=10:draw=line,format=yuv420p[v]" \
-map "[v]" -map 0:a \
polar-output.mp4
ffmpeg -i input.aiff \
-filter_complex "[0:a]avectorscope=size=1280x720:mode=lissajous_xy:zoom=3:draw=line,format=yuv420p[v]" \
-map "[v]" -map 0:a \
lissajous-output.mp4 What each part does
avectorscope=size=1280x720:mode=polar:zoom=10:draw=line
polar fan, 10× zoom, connected lines
avectorscope=…:mode=lissajous_xy:zoom=3:draw=line
L/R on X/Y axes, 3× zoom
format=yuv420p 4:2:0 for H.264
-map "[v]" -map 0:a the scope plus the original audio When to use it
Use this when you want the stereo field drawn as a continuous trace rather than the dot cloud of avectorscope.sh. The polar fan reads like a hardware goniometer, which makes it a good stereo-image check you can watch alongside the music. The Lissajous version is more decorative: tones trace looping figures that suit visualizer videos. Skip both for mono sources, since identical channels collapse to a single line. For a dedicated phase readout, see aphasemeter.sh.
The script renders both styles in one run. Delete the command you don't need, and change input.aiff, the output names or size=1280x720 to fit your project. The header explains each flag. Don't pass several files with a glob; use ../batch/render-visualizer-set.sh instead.
If the output looks wrong:
- A tiny trace huddled in the centre means the zoom is too low for quiet material, so raise it.
- A trace that floods the frame or runs off the edges means the zoom is too high for loud material, so lower it.
Notes
- Source
- ffmpeg-utilities/notes/ffmpeg-filters.txt
- Changed
- the source also ran "ffmpeg -i *.aiff … *.mp4", which doesn't batch: the shell expands the globs into one command line. For batches, see batch/render-visualizer-set.sh.