ffmpeg library function & build