add audio resampling, add ffmpeg support