There are a couple of examples under the doc
directory:
- examples/avcodec.c - encoding or decoding audio or video with libavcodec
- examples/output.c - taking your encoded audio/video and muxing it (putting it in a container format like AVI) with libavformat