[configure] add ffmpeg auto building and manual build script