def matched_files(matches):
    """Get files of the given matches."""
    files = set()
    for match in matches:
        files.add(match.query_video_file)
        files.add(match.match_video_file)
    return files