<p>Hi,</p> <p>I have a use-case where I want to record the webcam/desktop and stream to an RTMP endpoint.</p> <p>Here's what I need to do broken down:</p> <ul> <li><del>(Browser) Enable Video/Desktop recording.</del></li> <li><del>(Client) Stream to Server via WebSockets</del></li> <li>(Server) Capture Stream on Server</li> <li>(Server) Relay to RTMP endpoint.</li> </ul> <p>I've done the top two and don't need help with that. </p> <p>I've had a good look around wrt GoLang RTMP demos, but everything seems pretty complicated or is really old. </p> <p>Can someone suggest some github repos that I could look at where I can achieve receiving the web-socket data and then passing it on to an RTMP endpoint?</p> <p>Thanks</p> <hr/>**评论:**<br/><br/>wadearnold: <pre><p>Check out Red5 and open source media server that supports RTMP. It may even do transcoding. The Java source code is on GitHub which you could use as a basis for your solution. <a href="http://red5.org" rel="nofollow">http://red5.org</a></p></pre>no1youknowz: <pre><p>If I knew Java. I'd be using Wowza. I've tried using that, but their WebRTC is experimental and requires too many hops to put into production.</p> <p>But still, no thanks with Red5. I'm looking for a GoLang only solution.</p></pre>titpetric: <pre><p>Anything WebRTC is experimental at this point, tbh.</p></pre>raff99: <pre><p>ffmpeg/libav have support for rtmp so you can go that route.</p> <p>Not sure about this library, but at least it's being mantained: <a href="https://github.com/imkira/go-libav" rel="nofollow">https://github.com/imkira/go-libav</a></p></pre>
