def test_ffmpeg_parse_infos_no_default_stream(util):
    """WMV files don't have "default" streams marked in ffmpeg output.
    Make sure that ffmpeg_parse_infos can handle this case.
    """
    mp4_filepath = os.path.abspath("media/smpte-2997.mp4")
    wmv_filepath = os.path.join(
        util.TMP_DIR, "ffmpeg_parse_infos_no_default_stream-smpte-2997.wmv"
    )

    cmd = [
        FFMPEG_BINARY,
        "-y",
        "-i",
        ffmpeg_escape_filename(mp4_filepath),
        ffmpeg_escape_filename(wmv_filepath),
    ]
    with open(os.devnull, "w") as stderr:
        subprocess.check_call(cmd, stderr=stderr)

    d = ffmpeg_parse_infos(wmv_filepath)

    for key in (
        "default_video_stream_number",
        "default_video_input_number",
        "default_audio_stream_number",
        "default_audio_input_number",
        "video_fps",
        "audio_fps",
    ):
        assert key in d
WMV files don't have "default" streams marked in ffmpeg output.
    Make sure that ffmpeg_parse_infos can handle this case.
    
tests/test_ffmpeg_reader.py