# Koldflux audiogram demo, ffmpeg 6.1.1. Run in a folder with clip.wav and captions.srt (audiogram-demo.srt). # Windows or macOS: change the two fontfile paths to any .ttf file on your computer. ffmpeg -y -i clip.wav -f lavfi -i "color=c=0x0b1220:s=1080x1920:r=30" -filter_complex "[0:a]volume=3,showwaves=s=960x420:mode=cline:rate=30:colors=0x38bdf8:scale=sqrt:draw=full[w];[1:v]format=rgb24[bg];[bg][w]overlay=60:560:shortest=1,drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf:text='Podcast audiogram':fontcolor=white:fontsize=72:x=(w-text_w)/2:y=330,drawtext=fontfile=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf:text='demo with a synthetic voice':fontcolor=0x94a3b8:fontsize=44:x=(w-text_w)/2:y=440,subtitles=captions.srt:force_style='FontName=DejaVu Sans,FontSize=11,Bold=1,Alignment=2,MarginV=105,Outline=2'[v]" -map "[v]" -map 0:a -c:v libx264 -preset slow -crf 30 -pix_fmt yuv420p -r 30 -c:a aac -b:a 64k -movflags +faststart audiogram-demo.mp4 # The narration was made with: ffmpeg -f lavfi -i "flite=text='...':voice=slt" (one run per caption, 0.3 s of silence between), script in audiogram-demo-script.txt