ffmpeg: Improve filter input fps selection heuristic.