ffmpeg detection improvements