Creating Ogg video files on Linux A easy way to convert a video to theora (ogg) format is to use ffmpeg2theora. Just download the binary and run
ffmpeg2theora videoclip.avi
This will create videoclip.avi.ogg. To explore see some more examples. You can also try a KDE fontend (Katiuska) for same.

You can also use mplayer/encoder_example to encode your videos. Firstly, using mencoder you will need to extract from your video file raw video and audio stream. Then you can use encoder_example (supplied with theora package) to make a ogg video.
mkfifo stream.wav
mkfifo stream.yuv
mplayer -quiet -ao pcm -aofile stream.wav -vo null -vc null inputvideo.avi
mplayer -quiet -vo yuv4mpeg -ao null -ac null -nosound inputvideo.avi
encoder_example -v 3 -a 2 stream.wav stream.yuv > outfile.ogg
You can download a script that does all this.

Go back to ogg howto