Convert audio to visualization video

FFmpeg has a bunch of really cool filters you can use to turn audio into visualizations. Showvolume is my favorite as it shows volume changes in real-time, but the others are great too depending on use case.

avectorscope

ffmpeg -i input.ext -filter_complex "[0:a]avectorscope=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a avectorscope.mp4

showcqt

ffmpeg -i input.ext -filter_complex "[0:a]showcqt=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showcqt.mp4

ahistogram

ffmpeg -i input.ext -filter_complex "[0:a]ahistogram=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a ahistogram.mp4

aphasemeter

ffmpeg -i input.ext -filter_complex "[0:a]aphasemeter=s=1920x1080:mpc=cyan,format=yuv420p[v]" -map "[v]" -map 0:a aphasemeter.mp4

showfreqs

ffmpeg -i input.ext -filter_complex "[0:a]showfreqs=s=1920x1080:mode=line:fscale=log,format=yuv420p[v]" -map "[v]" -map 0:a showfreqs.mp4

showspectrum

ffmpeg -i input.ext -filter_complex "[0:a]showspectrum=s=1920x1080,format=yuv420p[v]" -map "[v]" -map 0:a showspectrum.mp4

showwaves

ffmpeg -i input.ext -filter_complex "[0:a]showwaves=s=1920x1080:mode=line:rate=25,format=yuv420p[v]" -map "[v]" -map 0:a showwaves.mp4

showvolume

ffmpeg -i input.ext -filter_complex "[0:a]showvolume=f=0.5:c=VOLUME:b=4:w=1920:h=900,format=yuv420p[v]" -map "[v]" -map 0:a showvolume.mp4

Leave a Reply

Your email address will not be published. Required fields are marked *