If you really want to encode your live video then , you should go for using the Expression Encoder SDK and its Live Encoding support via WebcamVideoProfile, although maybe WPF already has something like this
Expression Encoder[
^]. take a look its a awesome article which mighe help you.