user19586: I am looking for way to extract frames from a video shot in front of a green screen. This is the source video, so nothing has been chroma keyed on to it yet. I want to save the frames as PNGs with the green replaced by transparent.
I see its possible to get transparent video based this question, but I am looking to save as transparent PNG's, not video.

user1871: Assuming you are satisfied with the chroma key quality from ffmpeg, it's just
ffmpeg -i in.mp4 -vf chromakey={...} -vsync 0 out%d.png

where {...} is replaced with your chromakey filter arguments.

19586: <p>I am looking for way to extract frames from a video shot in front of a green screen. This is the source video, so nothing has been chroma keyed on to it yet. I want to save the frames as PNGs with the green replaced by transparent.</p>

<p>I see its possible to get transparent video based <a href="https://video.stackexchange.com/questions/21397/green-screen-to-transparent-with-ffmpeg">this question</a>, but I am looking to save as transparent PNG's, not video.</p>
 1871: <p>Assuming you are satisfied with the chroma key quality from ffmpeg, it's just</p>

<pre><code>ffmpeg -i in.mp4 -vf chromakey={...} -vsync 0 out%d.png
</code></pre>

<p>where <code>{...}</code> is replaced with your <a href="https://ffmpeg.org/ffmpeg-filters.html#chromakey" rel="nofollow noreferrer"><code>chromakey</code></a> filter arguments.</p>
