Encode live video to FLV

The goal is to place live traffic videos into a flash presentation all in real time.

I just can’t quite figure out how to do so. Can I encode incoming live video and have it placed in flash?

Thanks in advance.