1.

sudo apt-get purge ffmpeg x264 libx264-dev

2.

sudo apt-get update && sudo apt-get install build-essential libfaac-dev libfaad-dev libmp3lame-dev libtheora-dev libxvidcore4-dev

As you probably know, certain codecs are not activated in FFmpeg in Ubuntu Jaunty (Note: ffmpeg is a command line tool to convert one video file format to another).To install a 'fixed' version of ffmpeg for Ubuntu Jaunty:And then install these packages to resolve dependencies: