Audio: encode process

AVFrame has no "channels" attribute in LibAv. We should use
"av_get_channel_layout_nb_channels" on the "channel_layouts".