def read_info(
    filename
):
    """Extracts FFMPEG info and returns info as JSON

    Returns
    -------
    info : Dict
        JSON info dict
    """

    cmd = [
        'ffprobe',
        filename,
        '-v', 'error',
        '-print_format', 'json',
        '-show_format', '-show_streams',
    ]

    out = sp.check_output(cmd)
    info = json.loads(out.decode('utf-8'))
    return info
Extracts FFMPEG info and returns info as JSON

    Returns
    -------
    info : Dict
        JSON info dict