Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Leeaandrob opened this issue Mar 9, 2023 · 2 comments

Comments

@Leeaandrob
Copy link

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 :(

@erankor
Copy link
Collaborator

erankor commented Mar 14, 2023

Maybe the environment variable SEGMENTER_KMP_URL is not set? Can you share the final JSON after marshalling?

@Leeaandrob
Copy link
Author

I figured out the problem @erankor thanks, but I have another problem, using the default configuration I ingested unstable using the feature, for example pointing to Youtube.

Do you have some recommendations?

Congratulations, but the module is really impressive and the possibilities possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants