Replies: 7 comments
-
What's the guide or API of twitch? For example, how can you publish stream to twitch by ffmpeg? |
Beta Was this translation helpful? Give feedback.
-
It should basically be 'push rtmp://live-lhr.twitch.tv/app/twitch_key;' and it should be flv for ffmpeg i've been using: This was done with arut/nginx-rtmp-module, but since it is no longer being updated I would like to move to something that is an maybe get better results in the long run :) |
Beta Was this translation helpful? Give feedback.
-
You can stream to twitch the same way that you stream to any other RTMP FLV consumer via some push. |
Beta Was this translation helpful? Give feedback.
-
Maybe you can try SRS edge, which proxy all stream to upstream server, without any transcoding. BTW, why transcode by ffmpeg in your previous scenario? Must you transcode it? Or just ok to proxy the stream to twitch server? The transcoding takes lots of CPU, so we should never use it unless it's necessary. |
Beta Was this translation helpful? Give feedback.
-
SRS EDGE to proxy stream to one upstream: https://github.com/ossrs/srs/wiki/v1_EN_Edge |
Beta Was this translation helpful? Give feedback.
-
I want to transcode on server side because this way I can keep my gaming PC CPU free, I can send 50000k video with NVENC to server (almost 0 impact on gaming pc) and then server makes it ready for twitch with good quality at 2500k. If I would use same 2500k on PC then NVENC would screw with quality and x264 would just eat up CPU. I'll start experimenting on this and see what I can come up with, thanks! |
Beta Was this translation helpful? Give feedback.
-
You must use transcoding of SRS by FFMPEG, you can write the output url to use variables, please read the transcode wiki. |
Beta Was this translation helpful? Give feedback.
-
Sorry for a dumb question, but is there a guide for setting this up to use for transcoding and streaming to twitch for not so gifted guys with basic understanding of how stuff works? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions