avconv [input options] -i <input> [output options] <outputfile>

for most options a stream can be specified: -c:a will set the codec for the audio stream

video codecs examples

audio codec examples

scale examples