Stop using deprecated fields
Tidy up audio options
Align lavc encoding buffer.