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

APPLICATION: forward to external servers #706

Closed
Steinies opened this issue Dec 1, 2016 · 7 comments
Closed

APPLICATION: forward to external servers #706

Steinies opened this issue Dec 1, 2016 · 7 comments
Assignees
Labels
Duplicated Duplicated bug. EnglishNative This issue is conveyed exclusively in English. Enhancement Improvement or enhancement.
Milestone

Comments

@Steinies
Copy link

Steinies commented Dec 1, 2016

This goes as feature request.

I downloaded and compiled srs then I tried to forward with this config:
v2:

vhost __defaultVhost__ {
	forward live-cdg.twitch.tv:1935/app/live_KryGoHere
}

v3:

vhost __defaultVhost__ {
    forward {
        enabled on;
        destination live-cdg.twitch.tv:1935/app/live_KryGoHere
    }
}

And i noticed that as tcUrl the server adds vHost and other information and other not nice things.

Is there a way to accomplish that? If not can an option for external forward to "not srs server" be added?
I would like to stream to my server and this one should stream to multiple targets.
e.g.:
destination live-cdg.twitch.tv:1935/app/live_KryGoHere a.rtmp.youtube.com:1935/live2/key1234

@Steinies
Copy link
Author

Steinies commented Dec 1, 2016

I even tried to edit srs_app_forward.cpp, but it did not worked.

@bzdk
Copy link

bzdk commented Dec 8, 2016

@Steinies

I have same requirement.Found 1 related issue:
#231

@bzdk
Copy link

bzdk commented Dec 8, 2016

@Steinies

Here is my approach by using srs v1.FYI

I also prefer to use FORWARD for this purpose.

===========

transcode {
enabled on;
ffmpeg /root/ffmpeg/ffmpeg-3.0.2-64bit-static/ffmpeg;

    engine youtube_live {
        enabled         on;
        vcodec          copy;
        acodec          copy;
        output          rtmp://a.rtmp.youtube.com/live2/qwqm-f1sf-9g1m-868s;
    }

}

===========

@winlinvip winlinvip added this to the srs 3.0 release milestone Dec 9, 2016
@winlinvip winlinvip added the Enhancement Improvement or enhancement. label Dec 9, 2016
@winlinvip
Copy link
Member

@bzdk You use the ingester to forward which need to forward one by one. The forward can apply rulers to all stream which publish to origin. I think it's ok when there is only few streams to forward, but we must use forward for amount of streams under the same ruler.

@bzdk
Copy link

bzdk commented Dec 12, 2016

@winlinvip agreed.

@winlinvip winlinvip changed the title Request: forward to external servers APPLICATION: forward to external servers Mar 26, 2017
@Bit0git
Copy link

Bit0git commented Feb 3, 2019

What is the state for this feature in 3.0?
It is too much of a limit inability to forward to external server.
For example what I need to accomplish is

OSB -----> SRS -----> (streaming platform A: xxx.com/key123)
|--> (streaming platform B: yyy.com/key456)
|--> (streaming platform C: zzz.com/key789)

In 2.0 I think the only solution is the copy transcode.
In Nginx is easy to push to multiple external server, without the demux/remux overhead and the spawn of ffmpeg, like in:

application live{

live on;
record off;
meta copy;
push “rtmp://xxx.com/key123”;
push “rtmp://yyy.com/key456”;
push “rtmp://xxx.com/key789”;
#Add all your rtmp endpoints here
}

@winlinvip
Copy link
Member

Dup to #1342

@winlinvip winlinvip assigned winlinvip and unassigned xiaozhihong Dec 26, 2021
@winlinvip winlinvip added the Duplicated Duplicated bug. label Dec 26, 2021
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicated Duplicated bug. EnglishNative This issue is conveyed exclusively in English. Enhancement Improvement or enhancement.
Projects
None yet
Development

No branches or pull requests

5 participants