This amazing script by Noah Veltman allows to create videos from d3.
npm install canvas topojson d3 rw
node draw.js | ffmpeg -y -c:v png -f image2pipe -r 20 -i - -an -c:v libx264 -pix_fmt yuv420p -movflags +faststart myvideo.mp4