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.

1 Answer 1


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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.