detect platform for ffmpeg