libavcodec seems to have 3 ways to specify parameters for a codec:
AVCodecContext
structAVDictionary
passed to avcodec_open2
AVOption
s, which seem to cover everything the other two doCan I use AVOption
s to setup all of the encoding parameters? In addition, can AVOption
s provide sensible defaults? Google doesn't yield any results and there's no example provided in the documentation.
Sure. Look at the examples of av_opt_*
calls in doc/examples. For defaults, call
av_opt_set_defaults