Where to use ffmpeg

Hi,

I have developed an webcam recorder in flex and currently recording the videos in flv format.

Read about ffmpeg that it can be used for enhancing the video quality. Can anyone please let me know how I go about this approach?

I am using php on the frontend. Should I use ffmpeg along with php? Can I trigger a call to php from inside of a swf? To what format should I convert the video to? avi, mp4? Will be a license issue if I convert the flv to other format?

For recording I am using following settings:

keyFrameInterval:int=60
bandwidth:int=0
quality:int=80

For microphone,
silentLevel:int=0

Do you suggest any changes in above parameters?

Even if I am recording in flv format, why I am still getting bit choppy videos. I can see boxes/checks in the video. How do I enhance such video or recording? Should I record in non flv format and convert it to flv to make it better.

Thanks guys.

Regards,
Vaibhav