Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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 to Twitch with a separate VOD audio channel #2288

Closed
erickskrauch opened this issue Apr 17, 2021 · 7 comments
Closed

Restream to Twitch with a separate VOD audio channel #2288

erickskrauch opened this issue Apr 17, 2021 · 7 comments
Assignees
Labels
EnglishNative This issue is conveyed exclusively in English. Enhancement Improvement or enhancement. Feature It's a new feature.
Milestone

Comments

@erickskrauch
Copy link

erickskrauch commented Apr 17, 2021

I'm sorry that I had to broke your issue template, it was in Chinese.

I'm trying to achieve a somewhat strange idea: I want to stream on Twitch and YouTube, but in such a way that on Twitch the broadcast will use their feature of a separate track for VOD ( to exclude music) and on YouTube with that particular track without music.

I have already tricked OBS by specifying the server I was not using as the platform to broadcast to:
OBS Twitch broadcast setup
OBS output settings

Then in the hosts file I override the address for this server, directing it to localhost:
hosts file configuration

Now I'm ready to receive the incoming stream and process it in my way. But the problem is that I can't catch the second track in any way. No matter which side I go to, I always get only 1 track. The second track is nowhere to be found. I suspect that for some reason the SRS implementation itself cuts off everything but the first track.

I checked: if I'll remove the redirection to localhost and start streaming directly on Twitch, the separate VOD track works fine. OBS has no way of knowing which end server it's streaming to, so the rtmp server gets the same content and the problem is somewhere on its side.

Is there anything I can do about it?

@winlinvip
Copy link
Member

I didn't get you, what's the deploy arch? Use OBS to publish to SRS or to Twitch? Or publish to SRS to forward to twitch? What's your use scenario? Please don't only tell us a feature to implements.

@winlinvip winlinvip added the Discussion Discussion or questions. label Apr 19, 2021
@erickskrauch
Copy link
Author

Sorry to confuse you. I'm trying to stream into multiple platforms, so I need to stream to the SRS server, which then will publish a stream to the target platforms. The trick with "broadcast to twitch" from the OBS is only necessary to activate the "Twitch VOD Track" feature, but actually, the stream is going to the SRS server.

@winlinvip
Copy link
Member

winlinvip commented Apr 20, 2021

OK, I got you. You publish stream to SRS by OBS, then use SRS to forward to multiple platforms.

Is it possible to publish to Twitch by normal RTMP stream? Like you select the Custom RTMP server of OBS?

image

@erickskrauch
Copy link
Author

Yes, it is possible, but then I can't specify a separate audio track for VOD in the video settings tab. This is a nuance of the OBS implementation: it only shows this option if it thinks the stream is going to be published on Twitch. That's why I need this hack with redefining the server address through the hosts file.

In any case, this hack works correctly and the stream comes to the SRS server. The problem is that there is no way I can get to the second track on the SRS side.

@erickskrauch
Copy link
Author

@winlinvip, sorry for pinging. Do you have any ideas about this?

@winlinvip
Copy link
Member

Yes, I think we should make it better to forward to streaming platform, like twitch etc.

I mark this issue to feature, and we may check it in SRS 5.0, thanks.

@winlinvip winlinvip added Enhancement Improvement or enhancement. Feature It's a new feature. and removed Discussion Discussion or questions. labels Aug 19, 2021
@winlinvip winlinvip self-assigned this Aug 19, 2021
@winlinvip winlinvip added this to the SRS 5.0 release milestone Aug 19, 2021
@krakow10
Copy link

krakow10 commented Apr 17, 2023

I am interested in the same use case.
OBS -> SRS (audio track 1 with music, audio track 2 with no music)
SRS -> Youtube (no music)
SRS -> Twitch (with music for live, no music for VOD track)

I think streaming to SRS using SRT might make more sense than trying to accept the specialized Twitch VOD RTMP from OBS which is limited to 2 audio tracks. This way, only the specialized Twitch VOD RTMP output with 2 audio tracks has to be implemented.

OBS has a pull request to be able to stream SRT with multiple audio tracks, with build artifacts also available.

This is also possible by using the OBS ffmpeg custom output but it is not nearly as stable.

@ossrs ossrs locked and limited conversation to collaborators Jul 18, 2023
@winlinvip winlinvip converted this issue into discussion #3648 Jul 18, 2023
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
EnglishNative This issue is conveyed exclusively in English. Enhancement Improvement or enhancement. Feature It's a new feature.
Projects
None yet
Development

No branches or pull requests

3 participants