Skip to content

Restream, connect data feature using nginx-kmp-out-module and nginx-kmp-rtmp-module #164

Description

@Leeaandrob

Following the example provide in https://github.com/kaltura/media-framework/blob/master/conf/controller.php#L240 is just necessare create an upstreaem following this configuration below:

upstreams := []map[string]interface{}{
		{"id": "main", "url": os.Getenv("SEGMENTER_KMP_URL")},
		{
			"id":           "rtmp-out",
			"url":          "kmp://127.0.0.1:8005",
			"required":     "false",
			"resume_from":  "last_written",
			"connect_data": "base64==",
		},
		{
			"id":           "rtmp-out",
			"url":          "kmp://127.0.0.1:8005",
			"required":     "false",
			"resume_from":  "last_written",
			"connect_data": "base64",
		},
		{
			"id":           "rtmp-out",
			"url":          "kmp://127.0.0.1:8005",
			"required":     "false",
			"resume_from":  "last_written",
			"connect_data": "base64",
		},
	}

But the raise an error with this message:

2023/03/08 23:51:05 [error] 9#9: ngx_kmp_out_upstream_parse_url: no host in "" while reading upstream, peer: localhost, request: "POST /control HTTP/1.0"

https://github.com/kaltura/media-framework/tree/master/nginx-kmp-rtmp-module#structure

I'm following the example provided in controller.php localted into conf but I'm stuck in how can I use this feature :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions