> I'd like to have some information about programming with libogg.
> - download libogg documentation (functions library)
http://www.xiph.org/ogg/doc/ (also found in the doc tree in libogg).
> - example codes for encoding video and audio in an ogg file
You'll want libvorbis (audio codec) and libtheora (video codec), which
work in conjonction with libogg (encode audio as Vorbis, video as
Theora, and put these inside Ogg).
libtheora has a few example programs (examples/png2theora.c), and libvorbis too.
They're not so easy as a first guide though.