Video File Rendering of animations in JUCE?

Is it possible to save animations made in JUCE into a video file (like mp4)? (or to use Syphon)?

For either real-time or offline rendering.

You can render your app/plugin to an Image with createComponentSnapshot().
perhaps there is a way to funnel the image generated from that into a Syphon Stream or write it to a bunch of PNG files and use FFMPEG to turn those snapshots into an mp4 or something?