def get_video_muxings_from_configs(configs, codec, manifest_type):
    """
    Returns all video muxings of a given codec to be used with a given manifest type (DASH/HLS).
    """
    muxings = []

    for config in configs:
        if config['profile']['codec'] == codec:
            muxings += [
                muxing_spec for muxing_spec in config['muxing_list'] if muxing_spec['manifest_type'] == manifest_type
            ]

    return muxings