Fenrirthviti / stream-site

Rachni - nginx RTMP streaming front end
Other
197 stars 71 forks source link

Stream to over services too #31

Open liamgreen opened 6 years ago

liamgreen commented 6 years ago

Would it be possible to make it so users could also make it so there stream can be pushed to twitch/youtube etc like you can with the rtmp moduel and editing the nginx.conf file.

Thank you, Liam

Fenrirthviti commented 6 years ago

This is something I want too, but finding out how to implement it without needing to restart nginx on every additional stream destination is proving to be very difficult. It could, in theory, be accomplished by invoking ffmpeg commands to push the stream out to another destination, but this makes me a bit nervous from a stability standpoint.

liamgreen commented 6 years ago

You are able to input information into the nginx.conf file and use the reload command to reload the file so there isn't a need to restart nginx it's self

Sent from my iPhone

On 4 Aug 2017, at 1:38 am, Joel Bethke notifications@github.com wrote:

This is something I want too, but finding out how to implement it without needing to restart nginx on every additional stream destination is proving to be very difficult. It could, in theory, be accomplished by invoking ffmpeg commands to push the stream out to another destination, but this makes me a bit nervous from a stability standpoint.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Fenrirthviti commented 6 years ago

Reloading while a stream is active can cause disconnects and other issues if the file takes more than ~1 second to load. I tested this as well, and it was too unstable.

liamgreen commented 6 years ago

Oh right I see. Wouldn't it not just disconnect the stream for around 1 sec?

Sent from my iPhone

On 4 Aug 2017, at 9:15 pm, Joel Bethke notifications@github.com wrote:

Reloading while a stream is active can cause disconnects and other issues if the file takes more than ~1 second to load. I tested this as well, and it was too unstable.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Fenrirthviti commented 6 years ago

Even if it's just a short disconnect, it's not something I feel should be used in a production setup. It's too janky. If you want to set something up for yourself and use it, and you're comfortable with the potential to be disconnected when any user changes their settings, by all means go ahead.

liamgreen commented 6 years ago

Arhh brilliant. Thank you. Just need to learn how to implement it so it streams to twitch etc and all that settings are in the user account panel

Sent from my iPhone

On 4 Aug 2017, at 10:26 pm, Joel Bethke notifications@github.com wrote:

Even if it's just a short disconnect, it's not something I feel should be used in a production setup. It's too janky. If you want to set something up for yourself and use it, and you're comfortable with the potential to be disconnected when any user changes their settings, by all means go ahead.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

NekoSuneVR commented 2 years ago

This is something I want too, but finding out how to implement it without needing to restart nginx on every additional stream destination is proving to be very difficult. It could, in theory, be accomplished by invoking ffmpeg commands to push the stream out to another destination, but this makes me a bit nervous from a stability standpoint.

sorry Response but i know there is way do it. THIS SCRIPT i made few months ago can Push out other platforms, if able push this out on site as paths showed


$request = '{"m3u8": "https://apitube.chisdealhd.co.uk/server/hls/public/'.$streamkey.'.m3u8", "users_id": "17", "restreamsDestinations": '. json_encode($row11,true) . '}';

json_encode($row11,true) = JSON ARRAY KEYS LIKE ["URL/KEY1", "URL/KEY2"]

m3u8 = WHERE M3U8 PULLED AT of User

then this can work Restreaming. i got this from AVideo old Restream FILE that works as Charm and uses FFMPEG do it.

and will work rtmps:// if they have openssl and other part FFMPEG push that. so that will work on Facebook Gaming

if need any ideas how that works let me know. just that file and hall project i made was demo but i know exact way do Restream on my end using FFMPEG and .m3u8

since looked in all issues and i found this and i want method this.

this does include Discord Login too if want make it other Social networks login too. since saw that other part ISSUES